File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/components/Agentic/IncidentsContainer/CreateIncidentChatOverlay Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11import { fetchEventSource } from "@microsoft/fetch-event-source" ;
22import { useEffect , useRef , useState } from "react" ;
3+ import { useNavigate } from "react-router" ;
34import { useAgenticDispatch } from "../../../../containers/Agentic/hooks" ;
45import {
56 useGetIncidentAgentEventsQuery ,
@@ -29,6 +30,7 @@ export const CreateIncidentChatOverlay = () => {
2930 const abortControllerRef = useRef < AbortController | null > ( null ) ;
3031 const [ accumulatedData , setAccumulatedData ] =
3132 useState < IncidentAgentEvent [ ] > ( ) ;
33+ const navigate = useNavigate ( ) ;
3234
3335 const dispatch = useAgenticDispatch ( ) ;
3436
@@ -146,7 +148,7 @@ export const CreateIncidentChatOverlay = () => {
146148
147149 const handleIncidentNavigate = ( id : string ) => {
148150 dispatch ( setIsCreateIncidentChatOpen ( false ) ) ;
149- setIncidentId ( id ) ;
151+ void navigate ( `/incidents/ ${ id } ` ) ;
150152 } ;
151153
152154 const handleCreateIncidentChatDialogClose = ( ) => {
You can’t perform that action at this time.
0 commit comments