Skip to content

Commit

Permalink
PublishDatasetModal.tsx: close modal on submit action
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Jul 17, 2024
1 parent abc3252 commit 1aad727
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sections/dataset/publish-dataset/PublishDatasetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ export function PublishDatasetModal({
<Modal.Footer>
<Button
variant="primary"
onClick={() => submitPublish(selectedVersionUpdateType)}
onClick={() => {
handleClose()
submitPublish(selectedVersionUpdateType)
}}
type="submit">
{t('publish.continueButton')}
</Button>
Expand Down

0 comments on commit 1aad727

Please sign in to comment.