diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx index ed45378c08c..585b5b9d3b0 100644 --- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx @@ -141,7 +141,7 @@ export const QueryPerformance = ({ tab.id !== QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT ? tabMax > 1000 ? (tabMax / 1000).toFixed(2) - : tabMax.toLocaleString() + : tabMax.toFixed(0) : tabMax.toLocaleString() return ( @@ -180,7 +180,6 @@ export const QueryPerformance = ({ ) : ( - {/* {Number(tab.max).toLocaleString()} */} {maxValue} {tab.id !== QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT ? tabMax > 1000 diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx index 06d0bd6eefe..e38b84243c2 100644 --- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx +++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx @@ -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 (