From 058f5c3203b727b405dac57cc2460247a1670b87 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sun, 10 Mar 2024 14:59:07 +0000 Subject: [PATCH] Load roadmap on click --- src/components/GenerateRoadmap/GenerateRoadmap.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index 484571293..35f034973 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -384,7 +384,10 @@ export function GenerateRoadmap() { nodeType={selectedNode.nodeType} nodeTitle={selectedNode.nodeTitle} parentTitle={selectedNode.parentTitle} - onClose={() => setSelectedNode(null)} + onClose={() => { + setSelectedNode(null); + loadAIRoadmapLimit().finally(() => {}); + }} roadmapId={currentRoadmap?.id || ''} topicLimit={roadmapTopicLimit} topicLimitUsed={roadmapTopicLimitUsed}