Skip to content

Commit

Permalink
Merge pull request #5084 from nextcloud/artonge/fix/nul_file
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Dec 5, 2023
2 parents 4a90091 + 5f3cb2b commit 6b8a4d4
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 6b8a4d4

Please sign in to comment.