From f6a93048fc65115d4a317e2964f28d4ebb8d758b Mon Sep 17 00:00:00 2001 From: Salah-BOUYAHIA Date: Wed, 4 Dec 2024 10:34:11 +0100 Subject: [PATCH] fix: fix count not loading when switching snapshot --- src/components/CreationCohort/ControlPanel/ControlPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CreationCohort/ControlPanel/ControlPanel.tsx b/src/components/CreationCohort/ControlPanel/ControlPanel.tsx index fdee61d02..316369003 100644 --- a/src/components/CreationCohort/ControlPanel/ControlPanel.tsx +++ b/src/components/CreationCohort/ControlPanel/ControlPanel.tsx @@ -215,7 +215,7 @@ const ControlPanel: React.FC<{ const webSocketContext = useContext(WebSocketContext) useEffect(() => { - if (status && status === CohortJobStatus.NEW) { + if (status && (status === CohortJobStatus.NEW || status === CohortJobStatus.PENDING)) { setCountLoading(LoadingStatus.FETCHING) dispatch(countCohortCreation({ uuid: uuid })) }