diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index e675fa2a1..61a222a0c 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -263,6 +263,7 @@ export function GenerateRoadmap(props: GenerateRoadmapProps) { const { response, error } = await httpPost<{ roadmapId: string; + roadmapSlug: string; }>( `${import.meta.env.PUBLIC_API_URL}/v1-save-ai-roadmap/${currentRoadmap?.id}`, { @@ -293,7 +294,7 @@ export function GenerateRoadmap(props: GenerateRoadmapProps) { setIsLoading(false); pageProgressMessage.set(''); - return response.roadmapId; + return response.roadmapSlug; }; const downloadGeneratedRoadmapContent = async () => { @@ -685,9 +686,9 @@ export function GenerateRoadmap(props: GenerateRoadmapProps) {