Skip to content

Commit

Permalink
fix: reloading a public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Stehle committed Nov 14, 2024
1 parent b31aea5 commit bdb211e
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 bdb211e

Please sign in to comment.