Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
philippkuehn committed Sep 8, 2021
1 parent a5dca08 commit d3285e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/commands/unsetMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const unsetMark: RawCommands['unsetMark'] = (typeOrName, options = {}) =>

if (empty && extendEmptyMarkRange) {
let { from, to } = selection
const attrs = selection.$from.marks().find(mark => mark.type === type)?.attrs
const attrs = $from.marks().find(mark => mark.type === type)?.attrs
const range = getMarkRange($from, type, attrs)

if (range) {
Expand Down

0 comments on commit d3285e9

Please sign in to comment.