From 14b469291ab0683d1028a3d63a6229d49061e463 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 8 Jun 2026 15:15:46 -0400 Subject: [PATCH] fix(uns): bind _filter + modal parent-ids as Razor expressions, not literals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GlobalUns passed string component params without an @ prefix (Filter="_filter", ClusterId="_areaModalClusterId", etc.). Razor treats a string-typed component-parameter value without @ as a LITERAL, so UnsTree.Filter became the literal "_filter" and the modals received literal field-name strings as their parent ids. The non-empty literal filter matched no node, so the tree never rendered children beyond the enterprise roots; the modals would have created children under a bogus cluster/area/line/equipment id. Add @ to the six string-param bindings. Verified live in docker-dev: the full Enterprise->Cluster->Area->Line->Equipment tree renders and an area created via the modal persists with the correct ClusterId (MAIN). No unit test added — this is a Razor binding issue not reachable without bUnit (not used in this project). --- .../Components/Pages/Uns/GlobalUns.razor | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/GlobalUns.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/GlobalUns.razor index 836e10f6..940e9cba 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/GlobalUns.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/Uns/GlobalUns.razor @@ -38,7 +38,7 @@ else {
-