Skip to content

Commit 6f432d1

Browse files
Pearl1594DaanHoogland
authored andcommitted
fix ui
1 parent 6bb9dff commit 6f432d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ui/src/components/view/ListView.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
:loading="loading"
2222
:columns="isOrderUpdatable() ? columns : columns.filter(x => x.dataIndex !== 'order')"
2323
:dataSource="items"
24-
:rowKey="(record, idx) => record.id || record.name || record.usageType || idx + '-' + Math.random()"
24+
:rowKey="(record, idx) => hasNoUniqueKey() ? (idx + '-' + Math.random()) : (record.id || record.name || record.usageType || idx + '-' + Math.random())"
2525
:pagination="false"
2626
:rowSelection="explicitlyAllowRowSelection || enableGroupAction() || $route.name === 'event' ? {selectedRowKeys: selectedRowKeys, onChange: onSelectChange, columnWidth: 30} : null"
2727
:rowClassName="getRowClassName"
@@ -749,6 +749,9 @@ export default {
749749
'webhook', 'webhookdeliveries', 'sharedfs', 'ipv4subnets', 'asnumbers'
750750
].includes(this.$route.name)
751751
},
752+
hasNoUniqueKey () {
753+
return ['/ldapsetting'].some(prefix => this.$route.path.startsWith(prefix))
754+
},
752755
getDateAtTimeZone (date, timezone) {
753756
return date ? moment(date).tz(timezone).format('YYYY-MM-DD HH:mm:ss') : null
754757
},

0 commit comments

Comments
 (0)