Skip to content

Commit

Permalink
fix(files): catch race condition in FilesWorkspaceHeader init
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Dec 5, 2024
1 parent a5f0b4c commit a32987f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helpers/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ export const FilesWorkspaceHeader = new Header({
updated(folder, view) {
newWorkspaceCreated = false

if (!vm) {
console.warn('No vue instance found for FilesWorkspaceHeader')
return
}

// Currently there is not much use in updating the vue instance props since render is called on every folder change
// removing the rendered element from the DOM
// This is only relevant if switching to a folder that has no content as then the render function is not called
Expand Down

0 comments on commit a32987f

Please sign in to comment.