From a3c0815b88546ae0cf6be3b840025516220727d3 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 05797b42..56b0edee 100644 --- a/frontend/src/apexcharts.ts +++ b/frontend/src/apexcharts.ts @@ -84,7 +84,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;