From d79db801e0e27f86acd80dd69902ba5dc539b314 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Tue, 27 Sep 2022 11:06:17 +0200 Subject: [PATCH] unsubscribe --- .../shared/property-editor-config.element.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/shared/property-editor-config.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/shared/property-editor-config.element.ts index 0c7479c6cc..dd8d2fd415 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/shared/property-editor-config.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/property-editors/shared/property-editor-config.element.ts @@ -99,6 +99,12 @@ export class UmbPropertyEditorConfigElement extends UmbContextConsumerMixin(LitE this._properties = [...this._propertyEditorConfigProperties, ...this._propertyEditorUIConfigProperties]; } + disconnectedCallback(): void { + super.disconnectedCallback(); + this._propertyEditorConfigSubscription?.unsubscribe(); + this._propertyEditorUIConfigSubscription?.unsubscribe(); + } + render() { return html` ${this._properties.length > 0