zen: fix chart loading
Some checks are pending
deploy / deploy (push) Waiting to run
Update Nix Hashes / update (push) Waiting to run

closes #5030
This commit is contained in:
Frank 2025-12-03 18:12:23 -05:00
parent f00380d285
commit 7a4aa68706

View file

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