diff options
| author | Frank <[email protected]> | 2025-12-03 18:12:23 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-12-03 18:12:28 -0500 |
| commit | 7a4aa68706376f9d2c431437e9a7f020ffc40bae (patch) | |
| tree | 274e26a89c58d0fa4fc5bc35932b77a89666b5e3 | |
| parent | f00380d285b5bd88cb6275c5f17585622554f041 (diff) | |
| download | opencode-7a4aa68706376f9d2c431437e9a7f020ffc40bae.tar.gz opencode-7a4aa68706376f9d2c431437e9a7f020ffc40bae.zip | |
zen: fix chart loading
closes #5030
| -rw-r--r-- | packages/console/app/src/routes/workspace/[id]/graph-section.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/console/app/src/routes/workspace/[id]/graph-section.tsx b/packages/console/app/src/routes/workspace/[id]/graph-section.tsx index 2423605d2..46418d618 100644 --- a/packages/console/app/src/routes/workspace/[id]/graph-section.tsx +++ b/packages/console/app/src/routes/workspace/[id]/graph-section.tsx @@ -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 |
