mirror of
https://github.com/supabase/supabase.git
synced 2026-06-03 03:11:35 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user