Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: fix loading bug for stale files, remove commented out cache hit rate table

TzeYiing64f12df0bce7
diff --git a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
index c8e3b8db4ff..22f21527fd8 100644
--- a/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
+++ b/studio/components/interfaces/Reports/renderers/StorageRenderers.tsx
@@ -109,6 +109,7 @@ export const renderStaleFiles = (
twelve_month: number
}>
) => {
+ if (!props.data[0]) return null
return (
<div className="flex flex-row w-full px-4 justify-between gap-4">
{[
@@ -185,29 +186,4 @@ export const renderCacheHitRate = (
stackKey="type"
/>
)
-
- return (
- <Table
- containerClassName="max-h-72 w-full overflow-y-auto"
- className="relative rounded border border-scale-600"
- head={
- <>
- <Table.th className="sticky top-0 z-10">timestamp</Table.th>
- <Table.th className="sticky top-0 z-10">hit</Table.th>
- <Table.th className="sticky top-0 z-10">miss</Table.th>
- </>
- }
- body={
- <>
- {props.data.map((row, index) => (
- <Table.tr key={index}>
- <Table.td>{row.timestamp}</Table.td>
- <Table.td>{row.hit_count}</Table.td>
- <Table.td>{row.miss_count}</Table.td>
- </Table.tr>
- ))}
- </>
- }
- />
- )
}