Skip to content

Commit 7a4aa68

Browse files
author
Frank
committed
zen: fix chart loading
closes anomalyco#5030
1 parent f00380d commit 7a4aa68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/console/app/src/routes/workspace/[id]/graph-section.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ export function GraphSection() {
221221
const isCurrentMonth = () => store.year === now.getFullYear() && store.month === now.getMonth()
222222

223223
const chartConfig = createMemo((): ChartConfiguration | null => {
224+
if (typeof window === "undefined") return null
225+
224226
const data = getData()
225227
const dates = getDates()
226228
if (!data?.usage?.length) return null

0 commit comments

Comments
 (0)