Skip to content
Snippets Groups Projects
Commit 5f6b30bb authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(analysis): Prevent user to quit the app if he has no fluid connected and...

fix(analysis): Prevent user to quit the app if he has no fluid connected and open analysis page without navigate in the app before
parent 683f0030
Branches
Tags
2 merge requests!465Resolve "Analysis - if no fluid connected and no navigation history, quit the app",!435WIP: 1.4.0
......@@ -12,7 +12,9 @@ const AnalysisErrorModal: React.FC = () => {
history.push('/consumption')
}
const goBack = () => {
history.goBack()
if (history.length <= 2) {
history.push('/consumption')
} else history.goBack()
}
return (
<Dialog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment