diff --git a/frontend/src/pages/FlowPilotSessionPage.tsx b/frontend/src/pages/FlowPilotSessionPage.tsx index ae882140..fb4f7f39 100644 --- a/frontend/src/pages/FlowPilotSessionPage.tsx +++ b/frontend/src/pages/FlowPilotSessionPage.tsx @@ -1,5 +1,5 @@ import { useEffect, useRef, useState } from 'react' -import { useParams, useSearchParams, useLocation, useBlocker } from 'react-router-dom' +import { useParams, useSearchParams, useLocation, useBlocker, useNavigate } from 'react-router-dom' import { Sparkles, Loader2, AlertTriangle } from 'lucide-react' import { useFlowPilotSession } from '@/hooks/useFlowPilotSession' import { FlowPilotIntake, FlowPilotSession, SessionBriefing } from '@/components/flowpilot' @@ -9,6 +9,7 @@ import { toast } from '@/lib/toast' export default function FlowPilotSessionPage() { const { sessionId } = useParams<{ sessionId?: string }>() const [searchParams, setSearchParams] = useSearchParams() + const navigate = useNavigate() const location = useLocation() const prefill = (location.state as { prefill?: string } | null)?.prefill || '' const isPickup = searchParams.get('pickup') === 'true'