mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
wip: zen
This commit is contained in:
parent
5d765d63d4
commit
f6b3ffaf64
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue