From 33c318fbda4c763eeb6e35378279f7b3eb8bafc2 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Sun, 28 Apr 2024 04:15:14 +0600 Subject: [PATCH] chore: add roadmap slug (#5568) --- src/components/GenerateRoadmap/GenerateRoadmap.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) {