Skip to content

The open source coding agent.

TypeScript

wip: zen

Frankf6b3ffaf64f2
diff --git a/packages/console/app/src/routes/workspace/[id]/usage-section.tsx b/packages/console/app/src/routes/workspace/[id]/usage-section.tsx
index df8c8413393..6b3d1af60b3 100644
--- a/packages/console/app/src/routes/workspace/[id]/usage-section.tsx
+++ b/packages/console/app/src/routes/workspace/[id]/usage-section.tsx
@@ -26,9 +26,9 @@ export function UsageSection() {
setStore({ usage: usage() })
}, [usage])
- const hasResults = createMemo(() => store.usage.length > 0)
+ const hasResults = createMemo(() => store.usage && store.usage.length > 0)
const canGoPrev = createMemo(() => store.page > 0)
- const canGoNext = createMemo(() => store.usage.length === PAGE_SIZE)
+ const canGoNext = createMemo(() => store.usage && store.usage.length === PAGE_SIZE)
const goPrev = async () => {
const usage = await getUsageInfo(params.id!, store.page - 1)