From 9569f5b6bc93e35a4ee3085150c3276a26ba2aac Mon Sep 17 00:00:00 2001 From: Vitalii Kiiko Date: Fri, 11 Apr 2025 10:04:34 +0200 Subject: [PATCH] - fixed form preview was not showing; --- src/pages/BandoFormsEdit/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/BandoFormsEdit/index.js b/src/pages/BandoFormsEdit/index.js index abe947f..1fea87e 100644 --- a/src/pages/BandoFormsEdit/index.js +++ b/src/pages/BandoFormsEdit/index.js @@ -112,6 +112,8 @@ const BandoFormsEdit = () => { const formCreateCallback = (data, shouldRedirect) => { if (data.status === 'SUCCESS') { const bandoId = getBandoId(); + storeSet.main.unsetAsyncRequest(); + if (shouldRedirect) { navigate(`/bandi/${bandoId}/forms/${data.data.id}/preview`); return; @@ -127,7 +129,6 @@ const BandoFormsEdit = () => { }); } } - storeSet.main.unsetAsyncRequest(); } const errFormCreateCallback = (data) => {