Skip to content

Commit

Permalink
Fix loading of share indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Sep 8, 2022
1 parent e3b5213 commit 01a2e2b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ export default defineComponent({
return []
}
// remove root entry
parentPaths.pop()
parentPaths.forEach((parentPath) => {
const shares = cloneStateObject(this.sharesTree[parentPath])
if (shares) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ export default {
return []
}
// remove root entry
parentPaths.pop()
parentPaths.forEach((parentPath) => {
const shares = this.sharesTree[parentPath]
if (shares) {
Expand Down Expand Up @@ -260,9 +257,6 @@ export default {
return []
}
// remove root entry
parentPaths.pop()
parentPaths.forEach((parentPath) => {
const shares = this.sharesTree[parentPath]
if (shares) {
Expand Down
3 changes: 0 additions & 3 deletions packages/web-app-files/src/helpers/statusIndicators.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ const shareTypesIndirect = (path, sharesTree) => {
return []
}

// remove root entry
parentPaths.pop()

const shareTypes = {}

parentPaths.forEach((parentPath) => {
Expand Down
3 changes: 2 additions & 1 deletion packages/web-app-files/src/mixins/actions/rename.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 01a2e2b

Please sign in to comment.