From 463f03b7093e3cab85d7bd70db7b30aee48a737d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 4 Jan 2023 10:36:33 +0100 Subject: [PATCH] fix --- .../backoffice/shared/collection/collection.context.ts | 2 +- .../collection/dashboards/dashboard-collection.element.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/collection.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/collection.context.ts index b1969fe3e5..f3b13d4d68 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/collection.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/collection.context.ts @@ -13,7 +13,7 @@ export class UmbCollectionContext< private _entityKey: string | null; private _store?: StoreType; - protected _dataObserver?: UmbObserverController; + protected _dataObserver?: UmbObserverController; private _data: BehaviorSubject> = new BehaviorSubject(>[]); public readonly data: Observable> = this._data.asObservable(); diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/dashboards/dashboard-collection.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/dashboards/dashboard-collection.element.ts index a65ffe06f9..697fa88192 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/dashboards/dashboard-collection.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/collection/dashboards/dashboard-collection.element.ts @@ -39,14 +39,6 @@ export class UmbDashboardCollectionElement extends UmbLitElement { this._collectionContext = new UmbCollectionContext(this, null, manifestMeta.storeAlias); this.provideContext('umbCollectionContext', this._collectionContext); } - - // TODO: avoid this connection, our own approach on Lit-Controller could be handling this case. - this._collectionContext?.connectedCallback(); - } - disconnectedCallback(): void { - super.connectedCallback(); - // TODO: avoid this connection, our own approach on Lit-Controller could be handling this case. - this._collectionContext?.disconnectedCallback(); } render() {