Skip to content

Commit

Permalink
chore: remove the old element ast clearing code (#33905)
Browse files Browse the repository at this point in the history
should no longer be needed, this was changed over a year ago
  • Loading branch information
w33ble authored and Joel Griffith committed Mar 27, 2019
1 parent 7e34d69 commit 08810db
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 08810db

Please sign in to comment.