From f2eca77672961185179d4f1477b3ac4e6e973f45 Mon Sep 17 00:00:00 2001 From: mohas22 Date: Mon, 18 Nov 2024 18:41:53 +0530 Subject: [PATCH] Fix error when modal submitted without filling required field --- .../ListViewActionButtons/ListViewActionButtons.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 b2dc3096..0f3f71ed 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 @@ -49,10 +49,13 @@ function ListViewActionButtons(props: ListViewActionButtonsProps) { getPConnect() .getActionsApi() .submitEmbeddedDataModal(context) - .then(() => {}) - .finally(() => { + .then(() => { setIsDisabled(false); closeActionsDialog(); + }) + .catch(err => { + // eslint-disable-next-line no-console + console.log(err); }); }} >