From bfd818a24f29db521bb2e7208a7c4f3b08063d04 Mon Sep 17 00:00:00 2001 From: suvarnakale Date: Thu, 28 Nov 2024 17:52:13 +0530 Subject: [PATCH] Issue #PS-2651 bug: Creating extra/planned session needs to refresh page for second session- fix --- src/pages/centers/[cohortId]/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/centers/[cohortId]/index.tsx b/src/pages/centers/[cohortId]/index.tsx index 5967e8f2..9e69eb72 100644 --- a/src/pages/centers/[cohortId]/index.tsx +++ b/src/pages/centers/[cohortId]/index.tsx @@ -190,10 +190,7 @@ const CohortPage = () => { const handleSchedule = () => { console.log('handleSchedule called'); - setCreateEvent(false); - setTimeout(() => { - setCreateEvent(true); - }, 0); + setCreateEvent(true); }; const handleCloseSchedule = () => {