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 <[email protected]>
  • Loading branch information
skjnldsv committed Dec 5, 2024
1 parent 3bcb8e1 commit f348133
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 @@ -213,6 +213,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 f348133

Please sign in to comment.