From 5d2ea93efe9fe6cce5f3093cc61066c9ee1332f9 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 30 Apr 2026 11:57:46 -0500 Subject: [PATCH] Stabilize issue ledger activity memo --- ui/src/components/IssueRunLedger.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/components/IssueRunLedger.tsx b/ui/src/components/IssueRunLedger.tsx index 17a197d1611..7b0a5b5ee9b 100644 --- a/ui/src/components/IssueRunLedger.tsx +++ b/ui/src/components/IssueRunLedger.tsx @@ -460,6 +460,7 @@ export function IssueRunLedgerContent({ [ledgerRuns], ); const children = childIssueSummary(childIssues); + const canRenderActivityEvents = Boolean(renderActivityEvent); const feedItems = useMemo(() => { const items: LedgerFeedItem[] = []; for (const run of ledgerRuns) { @@ -470,7 +471,7 @@ export function IssueRunLedgerContent({ run, }); } - if (renderActivityEvent) { + if (canRenderActivityEvents) { for (const event of activityEvents ?? []) { items.push({ kind: "activity", @@ -489,7 +490,7 @@ export function IssueRunLedgerContent({ if (a.kind !== b.kind) return a.kind === "run" ? -1 : 1; return b.id.localeCompare(a.id); }); - }, [activityEvents, ledgerRuns, renderActivityEvent]); + }, [activityEvents, canRenderActivityEvents, ledgerRuns]); return (