From b1c6ec0087864295de8c413a24dc8968dbb94fbf Mon Sep 17 00:00:00 2001 From: mohas22 Date: Wed, 27 Nov 2024 13:11:19 +0530 Subject: [PATCH] enabled submit post api call --- .../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); }); }} >