From 882b01a1653061ad94d0d45cdcf70500a46e7fef Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 7 Jul 2025 15:52:41 +0100 Subject: [PATCH] Fix long names of topic ai --- src/components/TopicDetail/TopicDetailAI.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/TopicDetail/TopicDetailAI.tsx b/src/components/TopicDetail/TopicDetailAI.tsx index e34ef8193..339ebd084 100644 --- a/src/components/TopicDetail/TopicDetailAI.tsx +++ b/src/components/TopicDetail/TopicDetailAI.tsx @@ -290,21 +290,16 @@ export function TopicDetailAI(props: TopicDetailAIProps) { - {nodeTextParts.slice(1).map((text, index) => { - // -2 because we are removing roadmap title from the list - const isLast = index === nodeTextParts.length - 2; - + {nodeTextParts.slice(-2).map((text, index) => { return ( <> {text} - {!isLast && ( - - )} + ); })}