Fix Customers

This commit is contained in:
elforjani3
2020-11-10 19:48:37 +02:00
parent 44fb6d621b
commit 6da8f22885
5 changed files with 25 additions and 21 deletions

View File

@@ -55,9 +55,8 @@ const customersReducer = createReducer(initialState, {
[t.CUSTOMER_DELETE]: (state, action) => {
const { id } = action.payload;
if (typeof state.items[id] !== 'undefined') {
delete state.items[action.id];
delete state.items[id];
}
},