diff --git a/src/containers/Subtyping.js b/src/containers/Subtyping.js index 62b257f..e3c391b 100644 --- a/src/containers/Subtyping.js +++ b/src/containers/Subtyping.js @@ -14,6 +14,8 @@ import { subtypingDescription } from '../middleware/subtyping' // axios import axios from 'axios' import { API_ROOT } from '../middleware/api' +// router +import { Redirect } from 'react-router' class Subtyping extends PureComponent { constructor(props) { @@ -25,7 +27,8 @@ class Subtyping extends PureComponent { serotype: true, vf: true, open: false, - msg: '' + msg: '', + hasResult: false } } _selectFile = (file) => { @@ -100,6 +103,8 @@ class Subtyping extends PureComponent { )) } } + const hasResult = true + this.setState({hasResult}) }) }; // Snackbar @@ -112,52 +117,55 @@ class Subtyping extends PureComponent { const { file, pi, amr, serotype, vf } = this.state return (