From 5fc33c20e8b3ffadb226528cd44cd5500bdebd89 Mon Sep 17 00:00:00 2001 From: leejinho Date: Mon, 23 Mar 2020 09:43:31 +0900 Subject: [PATCH] =?UTF-8?q?bugfix=20::=20=EB=B0=A9=EC=97=90=20=EC=B4=88?= =?UTF-8?q?=EB=8C=80=EB=90=98=EA=B3=A0,=20=EB=8C=80=ED=99=94=EA=B0=80=20?= =?UTF-8?q?=EC=97=86=EC=9D=84=EB=95=8C=20=EB=B0=A9=EC=A0=95=EB=B3=B4?= =?UTF-8?q?=EA=B0=80=20=EC=97=86=EB=8A=94=20=EC=83=81=ED=83=9C=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EA=B0=95=ED=87=B4=EB=A5=BC=20=EB=8B=B9=ED=95=9C?= =?UTF-8?q?=EB=8B=A4=EB=A9=B4=20roomInfo=20=EA=B0=80=20=EC=97=86=EC=9D=84?= =?UTF-8?q?=20=EC=88=98=20=EC=9E=88=EB=8B=A4.=20=EC=9D=B4=EB=95=8C?= =?UTF-8?q?=EB=8A=94=20=EC=95=84=EB=AC=B4=EB=9F=B0=20=EC=95=A1=EC=85=98?= =?UTF-8?q?=EC=9D=84=20=ED=95=98=EC=A7=80=20=EC=95=8A=EB=8A=94=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/app/store/messenger/sync/reducers.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts index 163eb95f..16e24260 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/sync/reducers.ts @@ -105,6 +105,11 @@ export const reducer = createReducer( on(clearRoomUsers, (state, action) => { const roomInfo = state.room.entities[action.roomSeq]; + if (!roomInfo) { + // 방에 초대만 되고 대화가 발생하지 않아 방정보가 없을때, 방에서 강퇴된다면 roomInfo 가 없을 수 있다. + return { ...state }; + } + const roomUserList: RoomUserDetailData = { ...state.roomUser.entities[action.roomSeq] };