mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
parent
f00380d285
commit
7a4aa68706
1 changed files with 2 additions and 0 deletions
|
|
@ -221,6 +221,8 @@ export function GraphSection() {
|
|||
const isCurrentMonth = () => store.year === now.getFullYear() && store.month === now.getMonth()
|
||||
|
||||
const chartConfig = createMemo((): ChartConfiguration | null => {
|
||||
if (typeof window === "undefined") return null
|
||||
|
||||
const data = getData()
|
||||
const dates = getDates()
|
||||
if (!data?.usage?.length) return null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue