diff --git a/packages/web/src/components/ImportFlowDialog/index.jsx b/packages/web/src/components/ImportFlowDialog/index.jsx index cc5d8609..c99f35b3 100644 --- a/packages/web/src/components/ImportFlowDialog/index.jsx +++ b/packages/web/src/components/ImportFlowDialog/index.jsx @@ -18,11 +18,7 @@ import FileUploadInput from 'components/FileUploadInput'; import useImportFlow from 'hooks/useImportFlow'; function ImportFlowDialog(props) { - const { - onClose, - open = true, - 'data-test': dataTest = 'import-flow-dialog', - } = props; + const { open = true, 'data-test': dataTest = 'import-flow-dialog' } = props; const [hasParsingError, setParsingError] = React.useState(false); const [selectedFile, setSelectedFile] = React.useState(null); @@ -72,6 +68,10 @@ function ImportFlowDialog(props) { fileReader.readAsText(selectedFile); }; + const onClose = () => { + navigate('..'); + }; + return ( {formatMessage('importFlowDialog.title')} @@ -102,7 +102,7 @@ function ImportFlowDialog(props) {