diff --git a/main.js b/main.js index 849ae92..f7c5f9f 100644 --- a/main.js +++ b/main.js @@ -252,10 +252,9 @@ function save() { } function loadInvalids(val) { - let serialized = val.invalids; - if (serialized) { + if (val && val.invalids) { editor.operation(() => { // buffer all DOM changes together b/c performance - serialized.forEach(markInvalid); + val.invalids.forEach(markInvalid); }); } }