Skip to content

Commit 6a069c9

Browse files
committed
fix: close sidebar when list files and the file wasn't at the list
Signed-off-by: Vitor Mattos <[email protected]>
1 parent 6a4d8c1 commit 6a069c9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/store/files.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@ export const useFilesStore = function(...args) {
444444
identificationDocumentStore.setWaitingApproval(response.data.ocs.data.settings.identificationDocumentsWaitingApproval)
445445
}
446446

447+
if (this.selectedNodeId && !this.files[this.selectedNodeId]) {
448+
const sidebarStore = useSidebarStore()
449+
sidebarStore.hideSidebar()
450+
this.selectedNodeId = 0
451+
}
452+
447453
this.loading = false
448454
emit('libresign:files:updated')
449455
return this.files

0 commit comments

Comments
 (0)