fix(beszel): restore timePeriod cast and improve error visibility

- Restore timePeriod union cast to fix typecheck (TS2769)
- Clear live data on subscription error so error UI always shows
- Emit error when no integration is configured for live subscription
- Add error state to system select input when query fails
This commit is contained in:
Thomas Camlong committed 2026-06-15 15:55:41 +02:00
1 parent 6cb9024781
commit 16094876fa
5 files changed
+11 -4

No files matched your search

+4 -1
View File
@@ -162,7 +162,10 @@ export const beszelRouter = createTRPCRouter({
containerStats: BeszelContainerStatsRecord | null;
}>((emit) => {
const integration = ctx.integrations[0];
if (!integration) return () => {};
if (!integration) {
emit.error(new Error("No Beszel integration configured"));
return () => {};
}
const abortController = new AbortController();