Fix: emit update event if no fatal errors
This commit is contained in:
parent
81a7bb9ac9
commit
918e47b1ed
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user