Skip to content

Commit

Permalink
Fix extracting relative ranges from decorations. (ianstormtaylor#2970)
Browse files Browse the repository at this point in the history
  • Loading branch information
themithy authored and ianstormtaylor committed Aug 22, 2019
1 parent f428386 commit 1895c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/slate-react/src/components/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1895c66

Please sign in to comment.