Skip to content

Commit

Permalink
fix: File name in sidebar
Browse files Browse the repository at this point in the history
Keep the fallback with this.fileInfo as this.node could be null

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jan 9, 2025
1 parent 33b564d commit 6f6b742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/views/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ export default {
},
compact: this.hasLowHeight || !this.fileInfo.hasPreview || this.isFullScreen,
loading: this.loading,
name: this.fileInfo.name,
title: this.fileInfo.name,
name: this.node?.displayname ?? this.fileInfo.name,
title: this.node?.displayname ?? this.fileInfo.name,
}
} else if (this.error) {
return {
Expand Down

0 comments on commit 6f6b742

Please sign in to comment.