diff --git a/src/components/CreationCohort/ControlPanel/ControlPanel.tsx b/src/components/CreationCohort/ControlPanel/ControlPanel.tsx index 4a4bebbb4..38aa6dded 100644 --- a/src/components/CreationCohort/ControlPanel/ControlPanel.tsx +++ b/src/components/CreationCohort/ControlPanel/ControlPanel.tsx @@ -117,15 +117,15 @@ const ControlPanel: React.FC<{ if (logicalOperatorNeedToBeErase && logicalOperatorNeedToBeErase.length > 0) { for (const logicalOperator of logicalOperatorNeedToBeErase) { const { id } = logicalOperator - dispatch(deleteCriteriaGroup(id)) + dispatch(deleteCriteriaGroup(id)) } } - dispatch(buildCohortCreation({})) + dispatch(buildCohortCreation({})) } const _relaunchCount = (keepCount: boolean) => { if (keepCount) setOldCount(count ?? null) - dispatch( + dispatch( countCohortCreation({ json, snapshotId: currentSnapshot, @@ -151,7 +151,7 @@ const ControlPanel: React.FC<{ useEffect(() => { const interval = setInterval(() => { if (count && count.status && (count.status === 'pending' || count.status === 'started')) { - dispatch(countCohortCreation({ uuid: count.uuid })) + dispatch(countCohortCreation({ uuid: count.uuid })) } else { clearInterval(interval) } @@ -198,7 +198,7 @@ const ControlPanel: React.FC<{