From eddac04b481698a3aef8fbde4fda9b2ae642b301 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 1 Mar 2024 20:17:08 +0100 Subject: [PATCH] include children observer --- .../tree/tree-item/tree-item-base/tree-item-context-base.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/tree/tree-item/tree-item-base/tree-item-context-base.ts b/src/Umbraco.Web.UI.Client/src/packages/core/tree/tree-item/tree-item-base/tree-item-context-base.ts index 6498941ccd..877963bd5a 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/tree/tree-item/tree-item-base/tree-item-context-base.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/tree/tree-item/tree-item-base/tree-item-context-base.ts @@ -122,6 +122,7 @@ export abstract class UmbTreeItemContextBase { - // we need to skip the first value, because it will also return false until a child is in the store - // we therefor rely on the value from the tree item itself + /* we need to skip the first value, because it will also return false until a child is in the store + we therefor rely on the value from the tree item itself */ if (this.#hasChildrenInitValueFlag === true) { this.#hasChildren.setValue(hasChildren); }