From 1bb1c03c8a7efe9806bf15a0b156baf9d33dd9d1 Mon Sep 17 00:00:00 2001 From: 81reap Date: Mon, 28 Sep 2026 23:45:34 -0400 Subject: [PATCH] fix(chart) :: name refrence line feilds explictly `chart.handlebars` emits 6 keys for a reference line and stringifies so that unset fields come in as null. This is now explictly set in the type by making it a `Record`. --- frontend/src/apexcharts.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/apexcharts.ts b/frontend/src/apexcharts.ts index 8d15b324..66b83fac 100644 --- a/frontend/src/apexcharts.ts +++ b/frontend/src/apexcharts.ts @@ -56,7 +56,10 @@ const sqlpage_chart = (() => { const referenceColor = colorNames.get(isDarkTheme ? "gray-lt" : "gray"); - type ReferenceLine = { [property: string]: string | number | null }; + type ReferenceLine = Record< + "xline" | "xline_end" | "yline" | "yline_end" | "label" | "color", + string | number | null + >; const named_color = (name: unknown): string | undefined => typeof name === "string" ? colorNames.get(name) : undefined;