diff --git a/packages/nulp_elite/src/pages/content/joinCourse.js b/packages/nulp_elite/src/pages/content/joinCourse.js index e81f5df9..9d166ed4 100644 --- a/packages/nulp_elite/src/pages/content/joinCourse.js +++ b/packages/nulp_elite/src/pages/content/joinCourse.js @@ -1605,16 +1605,31 @@ const JoinCourse = () => { > {faqIndex.name} - {faqIndex?.children?.map((faqIndexname) => ( - - handleLinkClick(faqIndexname.identifier) - } - className="h6-title" - > + + + {/* If it's not a content collection, render it like a clickable child */} + {faqIndex.mimeType !== "application/vnd.ekstep.content-collection" ? ( + handleLinkClick(faqIndex.identifier)} + className="h6-title" + > + {faqIndex.name} + {completedContents.includes(faqIndex.identifier) && ( + + )} + + ) : ( + faqIndex?.children?.map((faqIndexname) => ( { {faqIndexname.name} ) : ( - {faqIndexname.name} - {completedContents.includes( - faqIndexname.identifier - ) && ( + handleLinkClick(faqIndexname.identifier)} + className="h6-title" + > + {faqIndexname.name} + {completedContents.includes(faqIndexname.identifier) && ( { float: "right", }} /> - )} - - + )} + )} + {faqIndexname.children && faqIndexname.children.length > 0 && (
@@ -1747,10 +1767,14 @@ const JoinCourse = () => {
)}
- - ))} - - ))} + )) + )} +
+ + ))} + + +