fix(studio): query performance empty columns (#38437)

fix: query performance empty columns

The role and total time columns were not rendering the results that were there. Added a check to make sure they render.
This commit is contained in:
kemal.earth
2025-09-04 15:58:24 +01:00
committed by GitHub
parent 6821c07811
commit 541c9f90cc

View File

@@ -90,6 +90,22 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformance
)
}
if (col.id === 'rolname') {
return (
<div className="w-full flex flex-col justify-center font-mono text-xs">
<p>{value || 'n/a'}</p>
</div>
)
}
if (col.id === 'prop_total_time') {
return (
<div className="w-full flex flex-col justify-center font-mono text-xs text-right">
<p>{value || 'n/a'}</p>
</div>
)
}
const isTime = col.name.includes('time')
const formattedValue =
!!value && typeof value === 'number' && !isNaN(value) && isFinite(value)