shwstppr commented on code in PR #11444:
URL: https://github.com/apache/cloudstack/pull/11444#discussion_r2734902340


##########
ui/src/components/view/ListView.vue:
##########
@@ -21,7 +21,7 @@
     :loading="loading"
     :columns="isOrderUpdatable() ? columns : columns.filter(x => x.dataIndex 
!== 'order')"
     :dataSource="items"
-    :rowKey="(record, idx) => record.id || record.name || record.usageType || 
idx + '-' + Math.random()"
+    :rowKey="(record, idx) => hasNoUniqueKey() ? (idx + '-' + Math.random()) : 
(record.id || record.name || record.usageType || idx + '-' + Math.random())"

Review Comment:
   Does ldap configuration returns any of id, name or usagetype? Won't it 
automatically fallback to `idx + '-' + Math.random()`
   On qa server, I was getting,
   ```
   (qaserver) 🐱 > list ldapconfigurations 
   {
     "LdapConfiguration": [
       {
         "hostname": "ldap.forumsys.com",
         "port": 389
       }
     ],
     "count": 1
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to