From 92ae3a3236e63c601b7d9e07ae79a5fb8e2b159a Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Thu, 6 Oct 2022 11:41:31 +0530 Subject: [PATCH] vm may not have created when this is called --- src/domain/session/room/RoomViewModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/RoomViewModel.js b/src/domain/session/room/RoomViewModel.js index 2328a6be..be2e7832 100644 --- a/src/domain/session/room/RoomViewModel.js +++ b/src/domain/session/room/RoomViewModel.js @@ -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(); }