From 3094a5a7c65580239f2f08d52a7c63e33871aaa8 Mon Sep 17 00:00:00 2001 From: samhere06 <118881732+samhere06@users.noreply.github.com> Date: Sun, 1 Dec 2024 20:10:40 +0530 Subject: [PATCH] enabled submit post api call (#429) Co-authored-by: mohas22 --- .../ListViewActionButtons/ListViewActionButtons.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx b/packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx index 9d6edede..d157d5e0 100644 --- a/packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +++ b/packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx @@ -50,12 +50,14 @@ function ListViewActionButtons(props: ListViewActionButtonsProps) { .getActionsApi() .submitEmbeddedDataModal(context) .then(() => { - setIsDisabled(false); closeActionsDialog(); }) .catch(err => { // eslint-disable-next-line no-console console.log(err); + }) + .finally(() => { + setIsDisabled(false); }); }} >