Skip to content

Commit

Permalink
Merge pull request #6735 from nextcloud/backport/6733/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(files): catch race condition in FilesWorkspaceHeader init
  • Loading branch information
juliusknorr authored Dec 12, 2024
2 parents 6577ca3 + f348133 commit 88be4f4
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 88be4f4

Please sign in to comment.