diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/structure/content-type-container-structure-helper.class.ts b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/structure/content-type-container-structure-helper.class.ts index b0052226b0..d28cfe8e00 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/content-type/structure/content-type-container-structure-helper.class.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/content-type/structure/content-type-container-structure-helper.class.ts @@ -100,7 +100,7 @@ export class UmbContentTypeContainerStructureHelper { @@ -165,13 +165,14 @@ export class UmbContentTypeContainerStructureHelper { this.#containers.setValue([]); this._insertChildContainers(rootContainers); + this._parentOwnerContainers = this.#structure!.getOwnerContainers(this._parentType!) ?? []; }, '_observeRootContainers', ); @@ -204,12 +205,20 @@ export class UmbContentTypeContainerStructureHelper x.id === containerId); + } + return false; + /* return ( this.#containers .getValue() .find((x) => (x.id === containerId && this._parentId ? x.parent?.id === this._parentId : x.parent === null)) !== undefined ); + */ } /** Manipulate methods: */