fix: pr-bug-scan validated finding from #2191 (#2215)

Co-authored-by: orca-bug-scan-bot <orca-bug-scan-bot@stably.ai>
This commit is contained in:
buf0-bot[bot] 2026-05-17 21:53:55 -07:00 committed by GitHub
parent 82372fbbdb
commit a1f7004776
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -485,8 +485,9 @@ export const createLinearSlice: StateCreator<AppState, [], [], LinearSlice> = (s
console.warn('[linear] listLinearTeams failed:', error)
if (looksLikeAuthError(error)) {
set({ linearStatus: { connected: false, viewer: null } })
return []
}
return []
return get().linearTeamCache[cacheKey]?.data ?? []
})
.finally(() => {
inflightTeamRequests.delete(cacheKey)