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}