Skip to content

Commit

Permalink
chore: hide personal collections from spotlight when using teams
Browse files Browse the repository at this point in the history
  • Loading branch information
amk-dev committed Mar 22, 2024
1 parent d19807b commit 2844e84
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,16 @@ export class CollectionsSpotlightSearcherService
}

scopeHandle.run(() => {
const isPersonalWorkspace = computed(
() => this.workspaceService.currentWorkspace.value.type === "personal"
)

watch(query, (query) => {
if (!isPersonalWorkspace.value) {
results.value = []
return
}

if (pageCategory === "other") {
results.value = []
return
Expand Down

0 comments on commit 2844e84

Please sign in to comment.