Skip to content

Commit 9f360fa

Browse files
committed
remove redundant code
1 parent e13f4ad commit 9f360fa

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ui/src/components/view/ListView.vue

Lines changed: 1 addition & 4 deletions
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) => hasNoUniqueKey() ? (idx + '-' + Math.random()) : (record.id || record.name || record.usageType || idx + '-' + Math.random())"
24+
:rowKey="(record, idx) => 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,9 +749,6 @@ 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-
},
755752
getDateAtTimeZone (date, timezone) {
756753
return date ? moment(date).tz(timezone).format('YYYY-MM-DD HH:mm:ss') : null
757754
},

0 commit comments

Comments
 (0)