File tree Expand file tree Collapse file tree
shell/components/SortableTable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { mapGetters } from 'vuex';
33import { defineAsyncComponent , useTemplateRef , onMounted , onBeforeUnmount } from ' vue' ;
44import day from ' dayjs' ;
55import isEmpty from ' lodash/isEmpty' ;
6- import { dasherize , ucFirst } from ' @shell/utils/string' ;
6+ import { dasherize , ucFirst , randomStr } from ' @shell/utils/string' ;
77import { get , clone } from ' @shell/utils/object' ;
88import { removeObject } from ' @shell/utils/array' ;
99import { Checkbox } from ' @components/Form/Checkbox' ;
@@ -714,7 +714,7 @@ export default {
714714 grp .rows .forEach ((row ) => {
715715 const rowData = {
716716 row,
717- key: this .get (row, this .keyField ),
717+ key: this .get (row, this .keyField ) ?? randomStr () ,
718718 showSubRow: this .showSubRow (row, this .keyField ),
719719 canRunBulkActionOfInterest: this .canRunBulkActionOfInterest (row),
720720 columns: []
@@ -1354,7 +1354,7 @@ export default {
13541354 < / slot>
13551355 < template
13561356 v- for = " (row, i) in groupedRows.rows"
1357- : key= " i "
1357+ : key= " row.key "
13581358 >
13591359 < slot
13601360 name= " main-row"
You can’t perform that action at this time.
0 commit comments