A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat(app): close new sketch modal while on already existing sketch page
dextmorgn5596e60bf352
diff --git a/flowsint-app/src/components/graphs/new-sketch.tsx b/flowsint-app/src/components/graphs/new-sketch.tsxindex 836af172..980aa4fc 100644--- a/flowsint-app/src/components/graphs/new-sketch.tsx+++ b/flowsint-app/src/components/graphs/new-sketch.tsx@@ -30,7 +30,7 @@ interface NewSketchProps {export default function NewSketch({ children }: NewSketchProps) {const [open, setOpen] = useState(false)const router = useRouter()- const { investigationId } = useParams({ strict: false })+ const { investigationId, id: sketchId } = useParams({ strict: false })const queryClient = useQueryClient()const {@@ -59,6 +59,7 @@ export default function NewSketch({ children }: NewSketchProps) {queryKey: queryKeys.investigations.sketches(investigationId)})}+ if (sketchId) setOpen(false)} else {toast.error(result.error || 'Failed to create sketch.')}