From 2ea28da0e60dfa62c228dcae6a943b60749a3b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Mon, 30 Aug 2021 11:25:24 +0500 Subject: [PATCH] fix EditableTable autokeying bug --- src/components/Table/EditableTable.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Table/EditableTable.jsx b/src/components/Table/EditableTable.jsx index a06bc95..8e18eea 100644 --- a/src/components/Table/EditableTable.jsx +++ b/src/components/Table/EditableTable.jsx @@ -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