Demo is loading /clients instead of /dashboard
This commit is contained in:
parent
6b11ac8fb4
commit
ef4ff0f1cc
|
|
@ -563,7 +563,8 @@ Middleware<AppState> _createViewMainScreen() {
|
|||
final action = dynamicAction as ViewMainScreen;
|
||||
|
||||
if (store.state.uiState.currentRoute == LoginScreen.route) {
|
||||
store.dispatch(UpdateCurrentRoute(store.state.userCompany.canViewDashboard
|
||||
store.dispatch(UpdateCurrentRoute(
|
||||
store.state.userCompany.canViewDashboard || store.state.isDemo
|
||||
? DashboardScreenBuilder.route
|
||||
: ClientScreen.route));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue