Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Handle null file in RichWorkspace header
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and backportbot-nextcloud[bot] committed Dec 5, 2023
commit df5e61c341c785888b1d26d16cefa74209adcdbe
4 changes: 2 additions & 2 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default {
},
data() {
return {
// Keep track of a local copy of the hasRichWorkspace state as it might change after intitial rendering (e.g. when adding/removing the readme)
// Keep track of a local copy of the hasRichWorkspace state as it might change after initial rendering (e.g. when adding/removing the readme)
localHasRichWorkspace: false,
focus: false,
folder: null,
Expand Down Expand Up @@ -225,7 +225,7 @@ export default {
}
},
onFileDeleted(node) {
if (node.path === this.file.path) {
if (node.path === this.file?.path) {
this.localHasRichWorkspace = false
}
},
Expand Down