1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-15 11:44:05 +02:00

Fix extracting relative ranges from decorations. (#2970)

This commit is contained in:
themithy
2019-08-22 04:42:43 +02:00
committed by Ian Storm Taylor
parent f4283866f2
commit 1895c6696f

View File

@@ -177,9 +177,9 @@ class Node extends React.Component {
const sel = selection && getRelativeRange(node, i, selection)
const decs = newDecorations
.concat(decorations)
.map(d => getRelativeRange(node, i, d))
.filter(d => d)
.concat(decorations)
const anns = annotations
.map(a => getRelativeRange(node, i, a))