bugfix :: 방이 열려 있지 않은 상태에서 룸리스트에서 알림을 켜고 끄면 null exception 발생 하는 부분 수정.

This commit is contained in:
leejinho 2020-03-24 10:27:00 +09:00
parent 71187d64f5
commit 9f2afbc7fd

View File

@ -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;