From 049285a35721f87e470c266acc7d9abd71fd52a7 Mon Sep 17 00:00:00 2001 From: James Greenaway Date: Tue, 12 Feb 2019 17:21:39 +0000 Subject: [PATCH] Remove cancel action automatically updating state in reducer --- src/state/workloads/reducer.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/state/workloads/reducer.ts b/src/state/workloads/reducer.ts index 9299206..fe0f6d8 100644 --- a/src/state/workloads/reducer.ts +++ b/src/state/workloads/reducer.ts @@ -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 {