@ -16,12 +16,13 @@ export function boardsReducer(state = defaultState, action) {
|
||||
}
|
||||
|
||||
function handleSaveBoardSuccess(state, action) {
|
||||
const { board } = action;
|
||||
return {
|
||||
...state,
|
||||
byID: {
|
||||
...state.byID,
|
||||
[action.board.id.toString()]: {
|
||||
...action.board,
|
||||
[board.id]: {
|
||||
...board,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user