Skip to content

Commit c2860a9

Browse files
fix(enrichments): keep previous value visible while an enrichment cell reruns
1 parent b96bd0e commit c2860a9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/cells/cell-render.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ export function resolveCellRender({
7373
const inFlight =
7474
exec?.status === 'running' || exec?.status === 'queued' || exec?.status === 'pending'
7575
if (inFlight && blockRunning) return { kind: 'running' }
76-
// Enrichment outputs share an empty blockId, so `runningBlockIds` can never
77-
// match them — the group-level `running` status is the only "worker picked
78-
// this up" signal an enrichment cell has.
79-
if (isEnrichmentOutput && exec?.status === 'running') return { kind: 'running' }
8076

8177
// Value wins over pending-upstream: a finished column stays finished even
8278
// while other blocks in the group are still running. An empty string is not
@@ -89,6 +85,12 @@ export function resolveCellRender({
8985
return resolveLinkKind(text, currentWorkspaceId) ?? { kind: 'value', text }
9086
}
9187

88+
// Enrichment outputs share an empty blockId, so `runningBlockIds` can never
89+
// match them — the group-level `running` status is the only "worker picked
90+
// this up" signal an enrichment cell has. Checked after the value so a
91+
// rerun keeps showing the previous output until the new result lands.
92+
if (isEnrichmentOutput && exec?.status === 'running') return { kind: 'running' }
93+
9294
if (inFlight && !(groupHasBlockErrors && !blockRunning)) {
9395
// A `pending` cell whose jobId starts with `paused-` is mid-pause
9496
// (workflow yielded for human-in-the-loop). Render as Pending rather

0 commit comments

Comments
 (0)