mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-07-31 14:30:13 +02:00
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>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user