Skip to content

Commit 41b92dd

Browse files
committed
fix ui
1 parent f3329be commit 41b92dd

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"
@@ -742,6 +742,9 @@ export default {
742742
'webhook', 'webhookdeliveries', 'sharedfs', 'ipv4subnets', 'asnumbers'
743743
].includes(this.$route.name)
744744
},
745+
hasNoUniqueKey () {
746+
return ['/ldapsetting'].some(prefix => this.$route.path.startsWith(prefix))
747+
},
745748
getDateAtTimeZone (date, timezone) {
746749
return date ? moment(date).tz(timezone).format('YYYY-MM-DD HH:mm:ss') : null
747750
},

0 commit comments

Comments
 (0)