Skip to content

Commit

Permalink
Handle null file in RichWorkspace header
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and backportbot-nextcloud[bot] committed Dec 5, 2023
1 parent b1b9f6b commit df5e61c
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit df5e61c

Please sign in to comment.