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() {