vm may not have created when this is called

This commit is contained in:
RMidhunSuresh 2022-10-06 11:41:31 +05:30
parent 664038b946
commit 92ae3a3236
No known key found for this signature in database

View File

@ -128,7 +128,7 @@ export class RoomViewModel extends ViewModel {
// so emit all fields originating from summary
_onRoomChange() {
// propagate the update to the child view models so it's bindings can update based on room changes
this._composerVM.emitChange();
this._composerVM?.emitChange();
this.emitChange();
}