Skip to content

Commit

Permalink
fix: fix bug #4785 (#4836)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevobm authored Jan 29, 2024
1 parent adc99c6 commit f3cba1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/helpers/getMarksBetween.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getMarksBetween(from: number, to: number, doc: ProseMirrorNode):
})
} else {
doc.nodesBetween(from, to, (node, pos) => {
if (!node || node.nodeSize === undefined) {
if (!node || node?.nodeSize === undefined) {
return
}

Expand Down

0 comments on commit f3cba1e

Please sign in to comment.