Skip to content

Commit 36897f3

Browse files
mohas22mohas22
authored andcommitted
Fix error when modal submitted without filling required field
1 parent 163d1cb commit 36897f3

File tree

1 file changed

+5
-2
lines changed
  • packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons

1 file changed

+5
-2
lines changed

packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ function ListViewActionButtons(props: ListViewActionButtonsProps) {
4949
getPConnect()
5050
.getActionsApi()
5151
.submitEmbeddedDataModal(context)
52-
.then(() => {})
53-
.finally(() => {
52+
.then(() => {
5453
setIsDisabled(false);
5554
closeActionsDialog();
55+
})
56+
.catch(err => {
57+
// eslint-disable-next-line no-console
58+
console.log(err);
5659
});
5760
}}
5861
>

0 commit comments

Comments
 (0)