This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 04710169 Use $index to ensure other nodes included in inspector get 
unique angular ID's
04710169 is described below

commit 047101693f09a414fdcfaffe26b1304aa869130f
Author: Alex Heneveld <[email protected]>
AuthorDate: Thu Apr 17 15:19:03 2025 +0100

    Use $index to ensure other nodes included in inspector get unique angular 
ID's
    
    If there are multiple relationships it could be listed twice with the same 
ID.
---
 ui-modules/app-inspector/app/components/entity-tree/entity-node.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ui-modules/app-inspector/app/components/entity-tree/entity-node.html 
b/ui-modules/app-inspector/app/components/entity-tree/entity-node.html
index fe0e4dfe..61e9fdec 100644
--- a/ui-modules/app-inspector/app/components/entity-tree/entity-node.html
+++ b/ui-modules/app-inspector/app/components/entity-tree/entity-node.html
@@ -42,7 +42,7 @@
                      ng-if="child.viewModes.has(viewMode) && (!entity.children 
|| entity.children.length === 0)"
                      entity="child" application-id="applicationId" 
view-mode="viewMode"></entity-node>
         <!-- Other nodes under entity -->
-        <entity-node ng-repeat="child in entity.otherNodes track by child.id"
+        <entity-node ng-repeat="child in entity.otherNodes track by 
'other-'+$index+'-'+child.id"
                      ng-if="child.viewModes.has(viewMode)"
                      entity="child" application-id="applicationId" 
view-mode="viewMode"></entity-node>
     </div>

Reply via email to