1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-14 03:03:58 +02:00

fix reference to change.state

This commit is contained in:
Ian Storm Taylor
2017-10-27 13:50:43 -07:00
parent 2e74941787
commit 86f652bd9e

View File

@@ -45,7 +45,7 @@ Changes.normalizeNodeByKey = (change, key) => {
normalizeNodeAndChildren(change, node, schema) normalizeNodeAndChildren(change, node, schema)
document = change.state.document document = change.value.document
const ancestors = document.getAncestors(key) const ancestors = document.getAncestors(key)
if (!ancestors) return if (!ancestors) return