Fix content not shown for custom roadmaps

pull/5763/head
Kamran Ahmed 6 months ago
parent 0c32730424
commit e641f06823
  1. 1
      src/components/TopicDetail/TopicDetail.tsx

@ -187,6 +187,7 @@ export function TopicDetail(props: TopicDetailProps) {
} else { } else {
setLinks((response as RoadmapContentDocument)?.links || []); setLinks((response as RoadmapContentDocument)?.links || []);
setTopicTitle((response as RoadmapContentDocument)?.title || ''); setTopicTitle((response as RoadmapContentDocument)?.title || '');
setHasContent(true);
const sanitizedMarkdown = sanitizeMarkdown( const sanitizedMarkdown = sanitizeMarkdown(
(response as RoadmapContentDocument).description || '', (response as RoadmapContentDocument).description || '',

Loading…
Cancel
Save