Default to dashboard in the demo
This commit is contained in:
parent
5e14167e55
commit
21e32df61e
|
|
@ -29,10 +29,11 @@ Middleware<AppState> _createViewDashboard() {
|
||||||
store: store,
|
store: store,
|
||||||
force: action.force,
|
force: action.force,
|
||||||
callback: () {
|
callback: () {
|
||||||
if (!store.state.userCompany.canViewDashboard) {
|
final state = store.state;
|
||||||
|
if (state.isLoaded && !state.userCompany.canViewDashboard) {
|
||||||
store.dispatch(ViewClientList());
|
store.dispatch(ViewClientList());
|
||||||
} else {
|
} else {
|
||||||
if (store.state.isStale) {
|
if (state.isStale) {
|
||||||
store.dispatch(RefreshData());
|
store.dispatch(RefreshData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue