Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Mar 22, 2024
1 parent 9956d5c commit 24a9332
Showing 1 changed file with 6 additions and 8 deletions.
Expand Up @@ -58,7 +58,7 @@ export class TeamsSpotlightSearcherService
(query) => {
if (this.workspaceService.currentWorkspace.value.type === "team") {
const teamID = this.workspaceService.currentWorkspace.value.teamID
debouncedSearch(query, teamID)?.catch((_) => {})
debouncedSearch(query, teamID)?.catch(() => {})
}
},
{
Expand All @@ -68,17 +68,15 @@ export class TeamsSpotlightSearcherService

// set the search section title based on the current workspace
const teamName = computed(() => {
return (
(this.workspaceService.currentWorkspace.value.type === "team" &&
this.workspaceService.currentWorkspace.value.teamName) ||
this.t("team.search_title")
)
return this.workspaceService.currentWorkspace.value.type === "team"
? this.workspaceService.currentWorkspace.value.teamName
: this.t("team.search_title")
})

watch(
teamName,
(teamName) => {
this.searcherSectionTitle = teamName
(newTeamName) => {
this.searcherSectionTitle = newTeamName
},
{
immediate: true,
Expand Down

0 comments on commit 24a9332

Please sign in to comment.