Browse Source

Guard against a type error

master
yflory 9 months ago
parent
commit
9ba2d11cd5
1 changed files with 1 additions and 1 deletions
  1. 2
      www/code/markers.js

2
www/code/markers.js

@ -478,7 +478,7 @@ define([
// Remove marks that are placed under this one
try {
Env.editor.findMarks(from, to).forEach(function (mark) {
if (mark.attributes['data-type'] !== 'authormark') { return; }
if (!mark || !mark.attributes || mark.attributes['data-type'] !== 'authormark') { return; }
mark.clear();
});
} catch (e) {

Loading…
Cancel
Save