diff --git a/frontend/src/Editor/Inspector/Components/Table.jsx b/frontend/src/Editor/Inspector/Components/Table.jsx index 33d6a8ead4..45dec29c2e 100644 --- a/frontend/src/Editor/Inspector/Components/Table.jsx +++ b/frontend/src/Editor/Inspector/Components/Table.jsx @@ -202,12 +202,17 @@ class Table extends React.Component { /> this.onActionButtonPropertyChanged(index, 'backgroundColor', color)} /> + this.onActionButtonPropertyChanged(index, 'textColor', color)} /> @@ -288,13 +293,16 @@ class Table extends React.Component { const columns = this.state.component.component.definition.properties.columns; const column = columns.value[index]; - if(item === 'name') { - const newColumnSizes = JSON.parse(JSON.stringify(this.state.component.component.definition.properties.columnSizes)); - if(newColumnSizes[column.name]) { - newColumnSizes[value] = newColumnSizes[column.name]; - this.props.paramUpdated({ name: 'columnSizes' }, null, newColumnSizes, 'properties'); + if (item === 'name') { + const columnSizes = this.state.component.component.definition.properties.columnSizes; + + if (columnSizes) { + const newColumnSizes = JSON.parse(JSON.stringify(columnSizes)); + if (newColumnSizes[column.name]) { + newColumnSizes[value] = newColumnSizes[column.name]; + this.props.paramUpdated({ name: 'columnSizes' }, null, newColumnSizes, 'properties'); + } } - column['width'] = newColumnSizes[column.name] } column[item] = value;