Add AbortSignal support to dashboard/blocklist APIs and hooks

This commit is contained in:
2026-04-21 17:29:05 +02:00
parent 51e340fa33
commit cf5a000bf5
7 changed files with 122 additions and 16 deletions

View File

@@ -58,7 +58,7 @@ export function useJailDistribution(
setIsLoading(true);
setError(null);
fetchBansByJail(timeRange, origin)
fetchBansByJail(timeRange, origin, "fail2ban", controller.signal)
.then((data) => {
if (controller.signal.aborted) return;
setJails(data.jails);