Skip to content

Commit

Permalink
Merge pull request #11904 from owncloud/fix/public-folder-reload
Browse files Browse the repository at this point in the history
fix: reloading a public folder
  • Loading branch information
JammingBen authored Nov 14, 2024
2 parents df78086 + d1a672d commit c76ff09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-public-folder-reload
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Public folder reload

Reloading a folder on a public link page is no longer broken.

https://github.com/owncloud/web/pull/11904
https://github.com/owncloud/web/issues/11902
14 changes: 8 additions & 6 deletions packages/web-pkg/src/composables/piniaStores/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,14 @@ export const useResourcesStore = defineStore('resources', () => {
} else {
const { parentFolderId } = Object.values(data)[0]
const space = spacesStore.spaces.find(({ id }) => parentFolderId.startsWith(id))
data['/'] = {
id: space.id,
shareTypes: space.shareTypes,
parentFolderId: space.id,
spaceId: space.id,
path: '/'
if (space) {
data['/'] = {
id: space.id,
shareTypes: space.shareTypes,
parentFolderId: space.id,
spaceId: space.id,
path: '/'
}
}
}
}
Expand Down

0 comments on commit c76ff09

Please sign in to comment.