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 c4b8f7911a8..f4b6495fe7c 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/FileShares.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/FileShares.vue @@ -89,8 +89,8 @@ export default { store.getters.getToken ) - const loadSpaceTask = useTask(function* (signal, ref, spaceId) { - const graphResponse = yield graphClient.drives.getDrive(spaceId) + const loadSpaceTask = useTask(function* (signal, ref, storageId) { + const graphResponse = yield graphClient.drives.getDrive(storageId) if (!graphResponse.data) { return @@ -289,8 +289,8 @@ export default { } }, async mounted() { - if (this.$route.params.spaceId) { - await this.loadSpaceTask.perform(this, this.$route.params.spaceId) + if (this.$route.params.storageId) { + await this.loadSpaceTask.perform(this, this.$route.params.storageId) if (this.showSpaceMembers) { this.loadSpaceMembersTask.perform(this) diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js index c16e1c1bd18..39aaebb29ff 100644 --- a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js +++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js @@ -284,7 +284,7 @@ function getShallowMountedWrapper(data, loading = false) { mocks: { $route: { params: { - spaceId: 1 + storageId: 1 } } }