diff --git a/cmp/viewmanager/ViewManagerModel.ts b/cmp/viewmanager/ViewManagerModel.ts index a4a04980a..fce33d428 100644 --- a/cmp/viewmanager/ViewManagerModel.ts +++ b/cmp/viewmanager/ViewManagerModel.ts @@ -540,7 +540,7 @@ export class ViewManagerModel extends HoistModel { { track: () => this.view?.token, run: tkn => dataAccess.updateStateAsync({currentView: tkn}), - fireImmediately: this.view?.token !== initialState.currentView + fireImmediately: this.view?.token !== initialState?.currentView } ]; }