Remove cancel action automatically updating state in reducer
This commit is contained in:
@@ -27,15 +27,6 @@ export const reducer = (state: State = initialState, action: Action): State => {
|
|||||||
status: action.payload.status,
|
status: action.payload.status,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
case 'WORKLOAD_CANCEL':
|
|
||||||
return {
|
|
||||||
...state,
|
|
||||||
[action.payload.id]: {
|
|
||||||
...state[action.payload.id],
|
|
||||||
status: 'CANCELED',
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
case 'WORKLOAD_UPDATE_STATUS':
|
case 'WORKLOAD_UPDATE_STATUS':
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user