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 <daniel.s.holdsworth@gmail.com>

* 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 <daniel.s.holdsworth@gmail.com>
Co-authored-by: fellalli <fellalli@web.de>
pull/5763/head
Kamran Ahmed 6 months ago committed by GitHub
parent e641f06823
commit bfea73d372
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/components/TopicDetail/TopicDetail.tsx

@ -192,6 +192,8 @@ export function TopicDetail(props: TopicDetailProps) {
const sanitizedMarkdown = sanitizeMarkdown( const sanitizedMarkdown = sanitizeMarkdown(
(response as RoadmapContentDocument).description || '', (response as RoadmapContentDocument).description || '',
); );
setHasContent(sanitizedMarkdown?.length > 0);
topicHtml = markdownToHtml(sanitizedMarkdown, false); topicHtml = markdownToHtml(sanitizedMarkdown, false);
} }

Loading…
Cancel
Save