mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-22 00:30:19 +02:00
Stabilize issue ledger activity memo
This commit is contained in:
1 parent
bdcf7f01f7
commit
5d2ea93efe
1 file changed
+3
-2
@@ -460,6 +460,7 @@ export function IssueRunLedgerContent({
|
||||
[ledgerRuns],
|
||||
);
|
||||
const children = childIssueSummary(childIssues);
|
||||
const canRenderActivityEvents = Boolean(renderActivityEvent);
|
||||
const feedItems = useMemo<LedgerFeedItem[]>(() => {
|
||||
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 (
|
||||
<section className="space-y-3" aria-label="Issue run ledger">
|
||||
|
||||
Reference in new issue
Block a user