fix callbacks is undefined

This commit is contained in:
Chika 2021-04-26 22:03:54 +03:00
parent f591f61310
commit 1e99f902ad

View File

@ -95,7 +95,7 @@ const Table = ({
tableName,
rowIndex: ri,
propName: rowPropName,
columnCallback: callbacks[rowPropName],
columnCallback: callbacks && callbacks[rowPropName],
...columns[columnIndex].props,
});
return (