Fix the back button to work on first load too.

master
Tom Hacohen 7 years ago
parent 054caaa56f
commit 2d76164666

@ -93,7 +93,10 @@ const AppBarWitHistory = withRouter(
}
canGoBack() {
return this.props.history!.location.pathname !== routeResolver.getRoute('pim');
return (
(this.props.history!.location.pathname !== routeResolver.getRoute('pim')) &&
(this.props.history!.location.pathname !== routeResolver.getRoute('home'))
);
}
goBack() {

Loading…
Cancel
Save