Skip to content

Commit 3c5b37c

Browse files
committed
fix(playground): close import dialog before backdrop
1 parent e843c40 commit 3c5b37c

File tree

1 file changed

+3
-4
lines changed
  • experiments/apidom-playground/src/features/app/file-importer/url-import-dialog/components

1 file changed

+3
-4
lines changed

experiments/apidom-playground/src/features/app/file-importer/url-import-dialog/components/UrlImportDialog.jsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ const UrlImportDialog = ({ open, onClose }) => {
1919
};
2020

2121
const handleImport = () => {
22-
dispatch(importURL(url)).then(() => {
23-
setUrl('');
24-
onClose();
25-
});
22+
dispatch(importURL(url));
23+
setUrl('');
24+
onClose();
2625
};
2726

2827
return (

0 commit comments

Comments
 (0)