mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Table: fix cellProps.style.textAlign
being readOnly in some cases (#77137)
`cellProps.style.textAlign` is readOnly in some cases
This commit is contained in:
parent
a080ede871
commit
b88b206ee2
@ -52,7 +52,7 @@ export const DefaultCell = (props: TableCellProps) => {
|
|||||||
const cellStyle = getCellStyle(tableStyles, cellOptions, displayValue, inspectEnabled, isStringValue);
|
const cellStyle = getCellStyle(tableStyles, cellOptions, displayValue, inspectEnabled, isStringValue);
|
||||||
|
|
||||||
if (isStringValue && cellProps.style?.justifyContent === 'flex-end') {
|
if (isStringValue && cellProps.style?.justifyContent === 'flex-end') {
|
||||||
cellProps.style!.textAlign = 'right';
|
cellProps.style = { ...cellProps.style, textAlign: 'right' };
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user