use class method

This commit is contained in:
Niels Lyngsø
2023-01-05 11:35:12 +01:00
parent 63103754d9
commit 8a5f0201eb

View File

@@ -135,7 +135,7 @@ export class UmbEntityPropertyElement extends UmbLitElement {
private _observePropertyEditorUI() {
this.propertyEditorUIObserver?.destroy();
this.propertyEditorUIObserver = new UmbObserverController(this, umbExtensionsRegistry.getByAlias(this.propertyEditorUIAlias), (manifest) => {
this.propertyEditorUIObserver = this.observe(umbExtensionsRegistry.getByAlias(this.propertyEditorUIAlias), (manifest) => {
if (manifest?.type === 'propertyEditorUI') {
this._gotEditor(manifest);
}