From 0d72ae0120df77a66d82f1c680b0e86cc73143b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Tue, 24 Jan 2023 11:12:25 +0100 Subject: [PATCH] use UniqueObjectBehaviorSubject --- .../backoffice/shared/components/section/section.context.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts index a599227afe..e5b4af939d 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/shared/components/section/section.context.ts @@ -1,6 +1,6 @@ import { BehaviorSubject } from 'rxjs'; import type { Entity, ManifestSection, ManifestSectionView, ManifestTree } from '@umbraco-cms/models'; -import { UniqueBehaviorSubject } from '@umbraco-cms/observable-api'; +import { UniqueObjectBehaviorSubject } from '@umbraco-cms/observable-api'; import { UmbContextToken } from '@umbraco-cms/context-api'; export class UmbSectionContext { @@ -12,7 +12,7 @@ export class UmbSectionContext { public readonly activeTree = this._activeTree.asObservable(); // TODO: what is the best context to put this in? - private _activeTreeItem = new UniqueBehaviorSubject(undefined); + private _activeTreeItem = new UniqueObjectBehaviorSubject(undefined); public readonly activeTreeItem = this._activeTreeItem.asObservable(); // TODO: what is the best context to put this in? @@ -20,7 +20,7 @@ export class UmbSectionContext { public readonly activeView = this._activeView.asObservable(); constructor(sectionManifest: ManifestSection) { - this.#manifest = new UniqueBehaviorSubject(sectionManifest); + this.#manifest = new BehaviorSubject(sectionManifest); this.manifest = this.#manifest.asObservable(); }