Skip to content

Commit

Permalink
Make initialState null-safe in ViewManagerModel.stateReactions (#3876)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsolomon authored Dec 27, 2024
1 parent a5b88d2 commit 55f6f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmp/viewmanager/ViewManagerModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
{
track: () => this.view?.token,
run: tkn => dataAccess.updateStateAsync({currentView: tkn}),
fireImmediately: this.view?.token !== initialState.currentView
fireImmediately: this.view?.token !== initialState?.currentView
}
];
}
Expand Down

0 comments on commit 55f6f9b

Please sign in to comment.