From 2c860209624044464dfe3b6b0c77ddc154ed5bd4 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Tue, 18 Aug 2026 17:49:20 +0000 Subject: [PATCH] fix(desktop): share workstream PR status subscription Signed-off-by: loganj Co-authored-by: Amp Signed-off-by: loganj --- .../workstream-board/ui/WorkstreamPullRequests.tsx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/desktop/src/features/workstream-board/ui/WorkstreamPullRequests.tsx b/desktop/src/features/workstream-board/ui/WorkstreamPullRequests.tsx index 9254dc4d7e..6b48b703c2 100644 --- a/desktop/src/features/workstream-board/ui/WorkstreamPullRequests.tsx +++ b/desktop/src/features/workstream-board/ui/WorkstreamPullRequests.tsx @@ -3,10 +3,9 @@ import { openUrl } from "@tauri-apps/plugin-opener"; import { parseEntityLink } from "@/shared/lib/entityLink"; import { useOpenEntityLink } from "@/shared/ui/markdown/entityLinks"; -import { - type WorkstreamPullRequestDisplayState, - type WorkstreamPullRequestReference, - useWorkstreamPullRequestStatuses, +import type { + WorkstreamPullRequestDisplayState, + WorkstreamPullRequestReference, } from "@/features/workstream-board/lib/workstreamPullRequestStatus"; function lifecycleLabel( @@ -42,13 +41,11 @@ function referenceLabel(reference: WorkstreamPullRequestReference) { export function WorkstreamPullRequests({ references, - states: providedStates, + states, }: { references: readonly WorkstreamPullRequestReference[]; - states?: ReadonlyMap; + states: ReadonlyMap; }) { - const queriedStates = useWorkstreamPullRequestStatuses(references); - const states = providedStates ?? queriedStates; const openEntityLink = useOpenEntityLink(); return (