Remove 2dp for ms values in query performance advisor (#33472)

This commit is contained in:
Joshen Lim
2025-02-10 15:36:14 +08:00
committed by GitHub
parent 0a569b8aa7
commit ce6a432504
2 changed files with 2 additions and 5 deletions

View File

@@ -71,9 +71,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
renderCell: (props) => {
const value = props.row?.[col.id]
const isTime = col.name.includes('time')
const formattedValue = isTime
? `${Number(value.toFixed(2)).toLocaleString()}ms`
: value.toLocaleString()
const formattedValue = isTime ? `${value.toFixed(0)}ms` : value.toLocaleString()
return (
<div
className={cn(