fix: memory leak

This commit is contained in:
Fu Diwei 2025-02-10 16:27:01 +08:00
parent cbf711ee60
commit 5da142ab83

View File

@ -227,6 +227,10 @@ const WorkflowRuns = ({ className, style, workflowId }: WorkflowRunsProps) => {
}
return [...prev];
});
if (cb.record.status !== WORKFLOW_RUN_STATUSES.PENDING && cb.record.status !== WORKFLOW_RUN_STATUSES.RUNNING) {
unsubscribeWorkflowRun(item.id);
}
});
}