diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-11-20 18:09:54 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-01-15 16:57:20 +0100 |
commit | 6beaed95a8c9e162ba0cf91bd3a45b6a34b95536 (patch) | |
tree | 387c5ad51ba2408024cb0f98777d630fe1d9ab06 | |
parent | 0c2f57ae22807157133304ce43c51826f69a5f95 (diff) | |
download | nextcloud-server-6beaed95a8c9e162ba0cf91bd3a45b6a34b95536.tar.gz nextcloud-server-6beaed95a8c9e162ba0cf91bd3a45b6a34b95536.zip |
fixup: path-store
-rw-r--r-- | apps/files/src/store/paths.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files/src/store/paths.ts b/apps/files/src/store/paths.ts index 4a83cb51c83..54d937cce6b 100644 --- a/apps/files/src/store/paths.ts +++ b/apps/files/src/store/paths.ts @@ -67,6 +67,15 @@ export const usePathsStore = function(...args) { }) } + if (node.type === FileType.Folder && node.path === '/') { + const root = files.getRoot(service) + if (root === undefined) { + Vue.set(node, '_children', files.getNodesByPath(service, '/')) + files.setRoot({ service, root: node as Folder }) + } + return + } + // Update parent folder children if exists // If the folder is the root, get it and update it this.addNodeToParentChildren(node) |