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
co-authored by orca-bug-scan-bot
parent 82372fbbdb
commit a1f7004776
+2 -1
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)