Skip to content

Commit 9575c53

Browse files
samhere06mohas22
andauthored
Fix error when modal submitted without filling required field (#425)
Co-authored-by: mohas22 <[email protected]>
1 parent 163d1cb commit 9575c53

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)