Table cells of default type should be editable

This commit is contained in:
navaneeth 2021-09-01 21:33:17 +05:30
parent 4f0c08126c
commit f395541b0f

View file

@ -275,9 +275,7 @@ export function Table({
const rowChangeSet = changeSet ? changeSet[cell.row.index] : null;
const cellValue = rowChangeSet ? rowChangeSet[column.name] || cell.value : cell.value;
if (columnType === undefined || columnType === 'default') {
return <span>{cellValue}</span>;
} if (columnType === 'string') {
if (columnType === 'string' || columnType === undefined || columnType === 'default') {
if (column.isEditable) {
return (
<input