destroy
This commit is contained in:
@@ -137,7 +137,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') {
|
||||
|
||||
@@ -22,4 +22,9 @@ export class UmbObserver<Y = any> {
|
||||
hostDisconnected() {
|
||||
this.#subscription.unsubscribe();
|
||||
}
|
||||
|
||||
destroy(): void {
|
||||
this.#subscription.unsubscribe();
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user