Skip to content

Commit 29499ce

Browse files
samhere06mohas22
andauthored
Enabling submit post api call (#430)
Co-authored-by: mohas22 <[email protected]>
1 parent cf11589 commit 29499ce

File tree

1 file changed

+3
-1
lines changed
  • packages/react-sdk-components/src/components/infra/Containers/ModalViewContainer/ListViewActionButtons

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ function ListViewActionButtons(props: ListViewActionButtonsProps) {
5050
.getActionsApi()
5151
.submitEmbeddedDataModal(context)
5252
.then(() => {
53-
setIsDisabled(false);
5453
closeActionsDialog();
5554
})
5655
.catch(err => {
5756
// eslint-disable-next-line no-console
5857
console.log(err);
58+
})
59+
.finally(() => {
60+
setIsDisabled(false);
5961
});
6062
}}
6163
>

0 commit comments

Comments
 (0)