diff --git a/packages/grafana-ui/src/components/Table/DefaultCell.tsx b/packages/grafana-ui/src/components/Table/DefaultCell.tsx index 958421ef20a..c6a00b05ae5 100644 --- a/packages/grafana-ui/src/components/Table/DefaultCell.tsx +++ b/packages/grafana-ui/src/components/Table/DefaultCell.tsx @@ -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 (