diff --git a/packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue b/packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue index 04b05e39b91..8aa2e983019 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/FileLinks.vue @@ -320,9 +320,6 @@ export default defineComponent({ return [] } - // remove root entry - parentPaths.pop() - parentPaths.forEach((parentPath) => { const shares = cloneStateObject(this.sharesTree[parentPath]) if (shares) { diff --git a/packages/web-app-files/src/components/SideBar/Shares/FileShares.vue b/packages/web-app-files/src/components/SideBar/Shares/FileShares.vue index 7efa9e41a50..0c80a0de3eb 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/FileShares.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/FileShares.vue @@ -203,9 +203,6 @@ export default { return [] } - // remove root entry - parentPaths.pop() - parentPaths.forEach((parentPath) => { const shares = this.sharesTree[parentPath] if (shares) { @@ -260,9 +257,6 @@ export default { return [] } - // remove root entry - parentPaths.pop() - parentPaths.forEach((parentPath) => { const shares = this.sharesTree[parentPath] if (shares) { diff --git a/packages/web-app-files/src/helpers/statusIndicators.js b/packages/web-app-files/src/helpers/statusIndicators.js index bd8fe0c587b..0aabedb685c 100644 --- a/packages/web-app-files/src/helpers/statusIndicators.js +++ b/packages/web-app-files/src/helpers/statusIndicators.js @@ -68,9 +68,6 @@ const shareTypesIndirect = (path, sharesTree) => { return [] } - // remove root entry - parentPaths.pop() - const shareTypes = {} parentPaths.forEach((parentPath) => { diff --git a/packages/web-app-files/src/mixins/actions/rename.js b/packages/web-app-files/src/mixins/actions/rename.js index 2c5ee39ed65..af3db8c9282 100644 --- a/packages/web-app-files/src/mixins/actions/rename.js +++ b/packages/web-app-files/src/mixins/actions/rename.js @@ -73,7 +73,8 @@ export default { const parentPaths = getParentPaths(resources[0].path, false).map((path) => { return prefix + path }) - parentResources = await this.$client.files.list(parentPaths[0], 1) + const parentPathRoot = parentPaths[0] ?? prefix + parentResources = await this.$client.files.list(parentPathRoot, 1) parentResources = parentResources.map(buildResource) }