Fix errors throw when doing validity checks (#11171)

This commit is contained in:
Charles Gagnon
2020-07-01 14:37:28 -07:00
committed by GitHub
parent d6768ba12e
commit bd801ad8da
3 changed files with 3 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ export abstract class ContainerBase<T> extends ComponentBase {
super(_changeRef, _el);
this.items = [];
this._validations.push(() => this.items.every(item => {
return this.modelStore.getComponent(item.descriptor.id).valid;
return this.modelStore.getComponent(item.descriptor.id)?.valid || false;
}));
}