From ca4541613c2e40e40dc7bf58535743cc76fc110d Mon Sep 17 00:00:00 2001 From: Clemens Date: Mon, 25 Jul 2016 14:34:00 +0200 Subject: combine content with header updates --- web/src/js/ducks/ui/flow.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'web/src/js/ducks') diff --git a/web/src/js/ducks/ui/flow.js b/web/src/js/ducks/ui/flow.js index 62304994..d77af420 100644 --- a/web/src/js/ducks/ui/flow.js +++ b/web/src/js/ducks/ui/flow.js @@ -94,15 +94,6 @@ export function updateEdit(update) { export function stopEdit(flow, modified_flow) { let diff = getDiff(flow, modified_flow) return (dispatch) => { - if (diff.response && diff.response.content) { - dispatch(flowsActions.updateContent(flow, diff.response.content, "response")) - delete diff.response.content - } - if (diff.request && diff.request.content) { - dispatch(flowsActions.updateContent(flow, diff.request.content, "request")) - delete diff.request.content - } - dispatch(flowsActions.update(flow, diff)).then(() => { dispatch(flowsActions.updateFlow(modified_flow)) dispatch({ type: STOP_EDIT }) -- cgit v1.2.3