diff --git a/ui/src/Components/SilenceModal/SilenceMatch/MatchCounter.tsx b/ui/src/Components/SilenceModal/SilenceMatch/MatchCounter.tsx index 00f0504c6..aa94f22da 100644 --- a/ui/src/Components/SilenceModal/SilenceMatch/MatchCounter.tsx +++ b/ui/src/Components/SilenceModal/SilenceMatch/MatchCounter.tsx @@ -22,9 +22,14 @@ const MatchCounter: FC<{ filters.push(AlertManagersToFilter(silenceFormStore.data.alertmanagers)); } - const { response, error, isLoading, isRetrying } = useFetchGet< - APIAlertsResponseT - >(FormatBackendURI("alerts.json?") + FormatAlertsQ(filters)); + const { + response, + error, + isLoading, + isRetrying, + } = useFetchGet( + FormatBackendURI("alerts.json?") + FormatAlertsQ(filters) + ); return error ? ( = ({ alertStore, silenceFormStore, cluster, members, payload }) => { const [upstreams, setUpstreams] = useState([]); - const { response, error, inProgress, responseURI } = useFetchAny< - PostResponseT - >(upstreams); + const { + response, + error, + inProgress, + responseURI, + } = useFetchAny(upstreams); const [publicURIs, setPublicURIs] = useState<{ [key: string]: string }>({}); useEffect(() => {