mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Fixed
This commit is contained in:
parent
81d1a2910a
commit
5ad80cadca
@ -49,9 +49,9 @@ export const ModToolsReducer: Reducer<IModToolsState, IModToolsAction> = (state,
|
|||||||
switch(action.type)
|
switch(action.type)
|
||||||
{
|
{
|
||||||
case ModToolsActions.SET_INIT_DATA: {
|
case ModToolsActions.SET_INIT_DATA: {
|
||||||
const data = (action.payload.settings || state.settings || null);
|
const settings = (action.payload.settings || state.settings || null);
|
||||||
|
|
||||||
return { ...state, data };
|
return { ...state, settings };
|
||||||
}
|
}
|
||||||
case ModToolsActions.SET_CURRENT_ROOM_ID: {
|
case ModToolsActions.SET_CURRENT_ROOM_ID: {
|
||||||
const currentRoomId = (action.payload.currentRoomId || state.currentRoomId || null);
|
const currentRoomId = (action.payload.currentRoomId || state.currentRoomId || null);
|
||||||
|
Loading…
Reference in New Issue
Block a user