Skip to content

Commit 3788342

Browse files
committed
fix: Use displayname as sidebar title
Keep the fallback with this.fileInfo as this.node could be null Signed-off-by: Louis Chemineau <[email protected]>
1 parent 33b564d commit 3788342

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files/src/views/Sidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ export default {
245245
},
246246
compact: this.hasLowHeight || !this.fileInfo.hasPreview || this.isFullScreen,
247247
loading: this.loading,
248-
name: this.fileInfo.name,
249-
title: this.fileInfo.name,
248+
name: this.node?.displayname ?? this.fileInfo.name,
249+
title: this.node?.displayname ?? this.fileInfo.name,
250250
}
251251
} else if (this.error) {
252252
return {

0 commit comments

Comments
 (0)