diff options
Diffstat (limited to 'frontend/api')
| -rw-r--r-- | frontend/api/crud.reducer.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/api/crud.reducer.js b/frontend/api/crud.reducer.js index 04ade91..baf2536 100644 --- a/frontend/api/crud.reducer.js +++ b/frontend/api/crud.reducer.js @@ -114,6 +114,13 @@ export const crudReducer = (type) => { return { ...state, update: action.data, + index: addToIndex(state.index, action.data.res, state.options.sort), + show: { + res: (state.show.res.id === action.data.res.id ? { + ...state.show.res, + ...action.data.res, + } : state.show.res), + } } case crud_type.index_error: return { |
