Skip to content

Commit

Permalink
Merge pull request #675 from mahajanmahesh935/joincourseissue
Browse files Browse the repository at this point in the history
Bug #228391 : [Webapp- course detail page] when openening the course …
  • Loading branch information
paritshivani authored Oct 7, 2024
2 parents 845bdcc + 9e86983 commit 82eaf3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ const JoinCourse = () => {
if (_userId == data?.result?.content?.createdBy) {
setIsOwner(true);
}
const identifiers =
data?.result?.content?.children[0]?.children[0]?.identifier;
let identifiers;
if(data?.result?.content?.children[0]?.children){
identifiers = data?.result?.content?.children[0]?.children[0]?.identifier;
}else{
identifiers = data?.result?.content?.children[0]?.identifier
}
console.log(identifiers, "setChildNode");
setChildNode(identifiers);

Expand Down

0 comments on commit 82eaf3f

Please sign in to comment.