fix(beszel): resolve lint errors in widget and API files

Remove unused BeszelStatsData import from beszel router.
Replace non-null assertions with safe fallbacks across beszel
widget files (format.ts, chart.tsx, system-grid, system-stats).
This commit is contained in:
Thomas Camlong committed 2026-06-10 18:13:38 +02:00
1 parent 79b3e5cc18
commit 4b0c69e6a3
5 files changed
+22 -22

No files matched your search

@@ -97,7 +97,8 @@ export const useDockerChartData = (
) =>
useMemo(() => {
if (!containerStats?.length) return [];
const extract = defaultContainerExtractors[metric]!;
const extract = defaultContainerExtractors[metric];
if (!extract) return [];
return [...containerStats].toReversed().map((record) => {
const point: Record<string, unknown> = { time: formatTime(record.created) };
for (const name of containerNames) {