Skip to content

Commit

Permalink
Merge pull request #10631 from owncloud/fix-active-shares-nav-item
Browse files Browse the repository at this point in the history
fix: active share nav item after closing editors
  • Loading branch information
JammingBen authored Mar 18, 2024
2 parents e5cea82 + 12e7e30 commit f5bab81
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export const useDriveResolver = (options: DriveResolverOptions = {}): DriveResol

// clean up global state as the watchers aren't triggered anymore when navigating away
onUnmounted(() => {
spacesStore.setCurrentSpace(null)
const driveAliasAndItem = unref(options.driveAliasAndItem)
if (!driveAliasAndItem?.startsWith('personal/') && !driveAliasAndItem?.startsWith('project/')) {
spacesStore.setCurrentSpace(null)
}
})

watch(
Expand Down

0 comments on commit f5bab81

Please sign in to comment.