From 59a44f8eee47ff5b99b4a8c77143d703f3b5db44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 2 Jan 2023 11:43:41 +0100 Subject: [PATCH] turn into a one liner --- .../components/entity-property/entity-property.element.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/components/entity-property/entity-property.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/components/entity-property/entity-property.element.ts index f572dc6efd..95eab9ef83 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/components/entity-property/entity-property.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/components/entity-property/entity-property.element.ts @@ -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(this, umbExtensionsRegistry.getByAlias(this.propertyEditorUIAlias), (manifest) => { if (manifest?.type === 'propertyEditorUI') { this._gotData(manifest);