mirror of https://github.com/usual2970/certimate
fix: memory leak
parent
cbf711ee60
commit
5da142ab83
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue