turn into a one liner

This commit is contained in:
Niels Lyngsø
2023-01-02 11:43:41 +01:00
parent d9d70fc35c
commit 59a44f8eee

View File

@@ -136,9 +136,7 @@ export class UmbEntityPropertyElement extends UmbControllerHostMixin(LitElement)
}
private _observePropertyEditorUI() {
if(this.propertyEditorUIObserver) {
this.propertyEditorUIObserver.destroy();
}
this.propertyEditorUIObserver?.destroy();
this.propertyEditorUIObserver = new UmbObserverController<ManifestTypes>(this, umbExtensionsRegistry.getByAlias(this.propertyEditorUIAlias), (manifest) => {
if (manifest?.type === 'propertyEditorUI') {
this._gotData(manifest);