From d9c02c43e368b637e15ce71399eeb5dcd217041c Mon Sep 17 00:00:00 2001 From: Tal Borenstein Date: Tue, 7 Jan 2025 12:50:38 +0200 Subject: [PATCH] fix: fix --- keep-ui/app/(keep)/incidents/[id]/incident-header.tsx | 5 ++--- keep-ui/components/navbar/IncidentLinks.tsx | 10 +++++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/keep-ui/app/(keep)/incidents/[id]/incident-header.tsx b/keep-ui/app/(keep)/incidents/[id]/incident-header.tsx index be42dc643..8aa1bde28 100644 --- a/keep-ui/app/(keep)/incidents/[id]/incident-header.tsx +++ b/keep-ui/app/(keep)/incidents/[id]/incident-header.tsx @@ -117,10 +117,9 @@ export function IncidentHeader({ {incident.incident_type == "topology" && ( Topology diff --git a/keep-ui/components/navbar/IncidentLinks.tsx b/keep-ui/components/navbar/IncidentLinks.tsx index 790f9e9c6..19bb6668f 100644 --- a/keep-ui/components/navbar/IncidentLinks.tsx +++ b/keep-ui/components/navbar/IncidentLinks.tsx @@ -11,13 +11,17 @@ import { MdFlashOn } from "react-icons/md"; import clsx from "clsx"; type IncidentsLinksProps = { session: Session | null }; -const SHOW_N_INCIDENTS = 3; export const IncidentsLinks = ({ session }: IncidentsLinksProps) => { const isNOCRole = session?.userRole === "noc"; - const { data: incidents, mutate } = useIncidents(); + const { data: incidents, mutate } = useIncidents( + true, + 25, + 0, + { id: "creation_time", desc: false }, + {} + ); usePollIncidents(mutate); - const currentPath = usePathname(); if (isNOCRole) { return null;