From bfea73d372e57102ccdf4ba2d031d5d82a40ca43 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 29 May 2024 19:28:25 +0100 Subject: [PATCH] Fix topic details not loading for custom roadmaps (#5762) * Update AI example roadmaps * feat: add useful links to documentation on Rust web frameworks (#5756) Add Rust web framework doc links. --------- Co-authored-by: dsh * Add links to readme.md (ios-roadmap, backend-questions) (#5758) Add iOS roadmap and backend questions to readme.md. * Fix content not shown for custom roadmaps * Update topic detail --------- Co-authored-by: Ruslan Semagin <53819609+pixel365@users.noreply.github.com> Co-authored-by: dsh Co-authored-by: fellalli --- src/components/TopicDetail/TopicDetail.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/TopicDetail/TopicDetail.tsx b/src/components/TopicDetail/TopicDetail.tsx index f47f6d0d9..fa616a039 100644 --- a/src/components/TopicDetail/TopicDetail.tsx +++ b/src/components/TopicDetail/TopicDetail.tsx @@ -192,6 +192,8 @@ export function TopicDetail(props: TopicDetailProps) { const sanitizedMarkdown = sanitizeMarkdown( (response as RoadmapContentDocument).description || '', ); + + setHasContent(sanitizedMarkdown?.length > 0); topicHtml = markdownToHtml(sanitizedMarkdown, false); }