fix incidents page

This commit is contained in:
Alex Holliday committed 2025-06-13 12:08:59 +08:00
1 parent d2233d2e3e
commit c32cde6189
2 files changed
+3 -8

No files matched your search

+1 -5
View File
@@ -8,7 +8,6 @@ import OptionsHeader from "./Components/OptionsHeader";
//Utils
import { useTheme } from "@emotion/react";
import { useFetchMonitorsByTeamId } from "../../Hooks/monitorHooks";
import { useSelector } from "react-redux";
import { useState, useEffect } from "react";
import NetworkError from "../../Components/GenericFallback/NetworkError";
import { useTranslation } from "react-i18next";
@@ -16,7 +15,6 @@ import { useTranslation } from "react-i18next";
//Constants
const Incidents = () => {
// Redux state
const { user } = useSelector((state) => state.auth);
const { t } = useTranslation();
const BREADCRUMBS = [
@@ -31,9 +29,7 @@ const Incidents = () => {
//Utils
const theme = useTheme();
const [monitors, , isLoading, networkError] = useFetchMonitorsByTeamId({
teamId: user.teamId,
});
const [monitors, , isLoading, networkError] = useFetchMonitorsByTeamId();
useEffect(() => {
const monitorLookup = monitors?.reduce((acc, monitor) => {