forked from ddrilling/asb_cloud_front
fix EditableTable autokeying bug
This commit is contained in:
parent
47c76b5a88
commit
2ea28da0e6
@ -6,7 +6,7 @@ import { EditableCell } from './EditableCell'
|
|||||||
const newRowKeyValue = 'newRow'
|
const newRowKeyValue = 'newRow'
|
||||||
|
|
||||||
const tryAddKeys = (items) => {
|
const tryAddKeys = (items) => {
|
||||||
if(!items?.length)
|
if(!items?.length || !items[0])
|
||||||
return []
|
return []
|
||||||
if(items[0].key)
|
if(items[0].key)
|
||||||
return items
|
return items
|
||||||
|
Loading…
Reference in New Issue
Block a user