fix(ui) - login redirect

This commit is contained in:
Shekar Siri 2022-01-17 18:09:30 +05:30
parent 319852e56e
commit 0f4ceb1ca7

View file

@ -102,7 +102,7 @@ class Router extends React.Component {
this.props.fetchTenants();
}
if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login()) {
if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login() && this.state.destinationPath !== '/') {
this.props.history.push(this.state.destinationPath);
this.setState({ destinationPath: null });
}