Skip to content

Commit

Permalink
feat: add async on save to entity page (#1080)
Browse files Browse the repository at this point in the history
Add async on save for entity page
  • Loading branch information
soleksy-splunk authored Feb 20, 2024
1 parent 6d55d08 commit abe8f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/EntityPage/EntityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function EntityPage({
buttonText = _('Update');
}

const handleSubmit: ButtonClickHandler = (e) => {
const result = form.current?.handleSubmit(e);
const handleSubmit: ButtonClickHandler = async (e) => {
const result = await form.current?.handleSubmit(e);
if (result) {
handleRequestClose();
}
Expand Down

0 comments on commit abe8f96

Please sign in to comment.