Table: fix cellProps.style.textAlign being readOnly in some cases (#77137)

`cellProps.style.textAlign` is readOnly in some cases
This commit is contained in:
Sven Grossmann
2023-10-25 16:38:17 +02:00
committed by GitHub
parent a080ede871
commit b88b206ee2

View File

@@ -52,7 +52,7 @@ export const DefaultCell = (props: TableCellProps) => {
const cellStyle = getCellStyle(tableStyles, cellOptions, displayValue, inspectEnabled, isStringValue);
if (isStringValue && cellProps.style?.justifyContent === 'flex-end') {
cellProps.style!.textAlign = 'right';
cellProps.style = { ...cellProps.style, textAlign: 'right' };
}
return (