Skip to content

Commit f348133

Browse files
committed
fix(files): catch race condition in FilesWorkspaceHeader init
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 3bcb8e1 commit f348133

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/helpers/files.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ export const FilesWorkspaceHeader = new Header({
213213
updated(folder, view) {
214214
newWorkspaceCreated = false
215215

216+
if (!vm) {
217+
console.warn('No vue instance found for FilesWorkspaceHeader')
218+
return
219+
}
220+
216221
// Currently there is not much use in updating the vue instance props since render is called on every folder change
217222
// removing the rendered element from the DOM
218223
// This is only relevant if switching to a folder that has no content as then the render function is not called

0 commit comments

Comments
 (0)