fix EditableTable autokeying bug

This commit is contained in:
Фролов 2021-08-30 11:25:24 +05:00
parent 47c76b5a88
commit 2ea28da0e6

View File

@ -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