Skip to content

Commit

Permalink
Merge pull request #6912 from owncloud/dont-load-spaces-on-startup-if…
Browse files Browse the repository at this point in the history
…-not-present-in-capabilities

Don't load spaces on startup if not  in capabilties
  • Loading branch information
kulmann authored May 9, 2022
2 parents 54495e5 + 296316f commit 1ce8317
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/web-app-files/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export default {
},
userReady({ store }) {
// Load spaces to make them available across the application
store.dispatch('Files/loadSpaces', { clientService })
if (store.getters.capabilities.spaces?.enabled) {
store.dispatch('Files/loadSpaces', { clientService })
}

archiverService.initialize(
store.getters.configuration.server || window.location.origin,
Expand Down

0 comments on commit 1ce8317

Please sign in to comment.