diff --git a/edit/linter-meta.js b/edit/linter-meta.js index a51f267c..8bd494f2 100644 --- a/edit/linter-meta.js +++ b/edit/linter-meta.js @@ -20,7 +20,7 @@ function createMetaCompiler(cm) { } return editorWorker.metalint(match[0]) .then(({metadata, errors}) => { - if (!errors.length) { + if (errors.every(err => err.code === 'unknownMeta')) { for (const cb of updateListeners) { cb(metadata); }