From 3a3036550167f5c54ad26d2a40f07384daa4ef71 Mon Sep 17 00:00:00 2001 From: mohas22 Date: Wed, 27 Nov 2024 13:41:25 +0530 Subject: [PATCH] Enabling 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 0f3f71ed..35635d49 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); }); }} >