Skip to content

Commit

Permalink
Fix error when modal submitted without filling required field (#425)
Browse files Browse the repository at this point in the history
Co-authored-by: mohas22 <[email protected]>
  • Loading branch information
samhere06 and mohas22 authored Nov 19, 2024
1 parent 163d1cb commit 9575c53
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}}
>
Expand Down

0 comments on commit 9575c53

Please sign in to comment.