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 authored and GitHub committed 2023-10-25 09:38:17 -05:00
1 parent a080ede871
commit b88b206ee2
1 file changed
+1 -1
@@ -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 (