Skip to content

Commit

Permalink
Bug #228391 : [Webapp- course detail page] when openening the course …
Browse files Browse the repository at this point in the history
…detail page showing error - failed to fetch data please try again
  • Loading branch information
mahajanmahesh935 committed Oct 7, 2024
1 parent 85b10be commit 9e86983
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 9e86983

Please sign in to comment.