wip: zen
Some checks failed
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run
test / test (push) Waiting to run
deploy / deploy (push) Has been cancelled

This commit is contained in:
Frank 2025-11-16 03:32:11 -05:00
parent 5d765d63d4
commit f6b3ffaf64

View file

@ -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)