# 이슈처리 263
This commit is contained in:
parent
8c0358eba9
commit
2c94c9f7bd
|
@ -71,12 +71,21 @@ export const reducer = createReducer(
|
|||
}),
|
||||
|
||||
on(updateSuccess, (state, action) => {
|
||||
const curRoomInfo = state.roomInfo;
|
||||
let roomName = curRoomInfo.roomName;
|
||||
let receiveAlarm = curRoomInfo.receiveAlarm;
|
||||
|
||||
if (curRoomInfo.roomSeq === action.res.roomSeq) {
|
||||
roomName = action.res.roomName;
|
||||
receiveAlarm = action.res.receiveAlarm;
|
||||
}
|
||||
|
||||
return {
|
||||
...state,
|
||||
roomInfo: {
|
||||
...state.roomInfo,
|
||||
roomName: action.res.roomName,
|
||||
receiveAlarm: action.res.receiveAlarm
|
||||
roomName,
|
||||
receiveAlarm
|
||||
}
|
||||
};
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue
Block a user