fix: address CodeRabbit review findings

- docker-table: inspect refetch result instead of .catch() (TQ v5 compat)
- rssFeed: sort all entries by date before slicing to max posts
- toValidDate: reject null/boolean inputs before Date construction
- system-resources: reset chart history when integrationIds changes
- settleIntegrationQueries: wrap fn in async boundary for safe allSettled
This commit is contained in:
Thomas Camlong committed 2026-06-27 12:13:52 +02:00
1 parent 45c58c967e
commit 12bf6ee4be
5 files changed
+18 -14

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ export function formatDuration(milliseconds: number) {
}
export const toValidDate = (value: unknown): Date | null => {
if (value == null || typeof value === "boolean") return null;
const date = value instanceof Date ? value : new Date(value as string | number);
return Number.isFinite(date.getTime()) ? date : null;
};