diff --git a/packages/hoppscotch-common/src/services/spotlight/searchers/teamRequest.searcher.ts b/packages/hoppscotch-common/src/services/spotlight/searchers/teamRequest.searcher.ts index 891eeae0f58..8e5258fd2b4 100644 --- a/packages/hoppscotch-common/src/services/spotlight/searchers/teamRequest.searcher.ts +++ b/packages/hoppscotch-common/src/services/spotlight/searchers/teamRequest.searcher.ts @@ -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(() => {}) } }, { @@ -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,