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:
5 files changed
+11
-4
No files matched your search
@@ -71,7 +71,7 @@ export default function BeszelSystemStatsWidget({
|
||||
{
|
||||
integrationIds,
|
||||
systemId: selectedSystem,
|
||||
timePeriod: options.timePeriod,
|
||||
timePeriod: options.timePeriod as "1m" | "1h" | "12h" | "24h" | "1w" | "30d",
|
||||
includeDocker: showDocker,
|
||||
},
|
||||
{ staleTime: 30 * 1000, enabled: !isLive && systemReady && selectedSystem !== "" },
|
||||
|
||||
Reference in new issue
Block a user