Remove cancel action automatically updating state in reducer

This commit is contained in:
James Greenaway
2019-02-12 17:21:39 +00:00
parent 72252536ca
commit 049285a357

View File

@@ -27,15 +27,6 @@ export const reducer = (state: State = initialState, action: Action): State => {
status: action.payload.status,
},
};
case 'WORKLOAD_CANCEL':
return {
...state,
[action.payload.id]: {
...state[action.payload.id],
status: 'CANCELED',
},
}
case 'WORKLOAD_UPDATE_STATUS':
return {