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 tryAddKeys = (items) => {
|
||||
if(!items?.length)
|
||||
if(!items?.length || !items[0])
|
||||
return []
|
||||
if(items[0].key)
|
||||
return items
|
||||
|
Loading…
Reference in New Issue
Block a user