diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/room/reducers.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/room/reducers.ts index bba3bec5..2c03709e 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/room/reducers.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/room/reducers.ts @@ -72,6 +72,11 @@ export const reducer = createReducer( on(updateSuccess, (state, action) => { const curRoomInfo = state.roomInfo; + + if (!curRoomInfo) { + return { ...state }; + } + let roomName = curRoomInfo.roomName; let receiveAlarm = curRoomInfo.receiveAlarm;