Fix: emit update event if no fatal errors

This commit is contained in:
eight 2018-10-01 23:01:21 +08:00
parent 81a7bb9ac9
commit 918e47b1ed

View File

@ -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);
}