Skip to content

Commit

Permalink
[7.x] chore: remove the old element ast clearing code (elastic#33905) (
Browse files Browse the repository at this point in the history
…elastic#33987)

Backports the following commits to 7.x:
 - chore: remove the old element ast clearing code  (elastic#33905)
  • Loading branch information
w33ble authored Mar 27, 2019
1 parent cb3ce6f commit cfc92b6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x-pack/plugins/canvas/public/state/reducers/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ function assignNodeProperties(workpadState, pageId, nodeId, props) {
return workpadState;
}

// remove any AST value from the element caused by https://github.com/elastic/kibana-canvas/issues/260
// TODO: remove this after a bit of time
const cleanWorkpadState = del(workpadState, nodesPath.concat([nodeIndex, 'ast']));

return assign(cleanWorkpadState, nodesPath.concat(nodeIndex), props);
return assign(workpadState, nodesPath.concat(nodeIndex), props);
}

function moveNodeLayer(workpadState, pageId, nodeId, movement, location) {
Expand Down

0 comments on commit cfc92b6

Please sign in to comment.