From 918e47b1ed0f4ee0e4b075dd20c4b9704a2fef56 Mon Sep 17 00:00:00 2001 From: eight Date: Mon, 1 Oct 2018 23:01:21 +0800 Subject: [PATCH] Fix: emit update event if no fatal errors --- edit/linter-meta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }