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 committed Dec 5, 2023
commit 5f3cb2bd8ec23a5b377f1cc493897459254901a8
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