From c019f0f9812f7a16e43aff76c8d983e195aaf1b1 Mon Sep 17 00:00:00 2001 From: Mahesh Mahajan Date: Tue, 12 Nov 2024 12:43:13 +0530 Subject: [PATCH] Bug #230128 : [Webapp- content consumption] unable to play content when clicking start learning, [Webapp- connections] Add connection page is showing blank. --- packages/nulp_elite/src/pages/connections/chat.js | 2 +- packages/nulp_elite/src/pages/content/joinCourse.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/nulp_elite/src/pages/connections/chat.js b/packages/nulp_elite/src/pages/connections/chat.js index 20c2b2fb..848135cd 100644 --- a/packages/nulp_elite/src/pages/connections/chat.js +++ b/packages/nulp_elite/src/pages/connections/chat.js @@ -127,7 +127,7 @@ const Chat = ({ const [eneteredtextValue, setEnteredTextValue] = useState(""); const charLimit = 700; const [prefilledMessage, setPrefilledMessage] = useState( - t("HELLO_CONNECT_MESSAGE") + "Hello! I’d like to connect with you." ); const [textValue, setTextValue] = useState(""); diff --git a/packages/nulp_elite/src/pages/content/joinCourse.js b/packages/nulp_elite/src/pages/content/joinCourse.js index 26480e77..6401125a 100644 --- a/packages/nulp_elite/src/pages/content/joinCourse.js +++ b/packages/nulp_elite/src/pages/content/joinCourse.js @@ -162,13 +162,15 @@ const JoinCourse = () => { setIsOwner(true); } let identifiers; - if (data?.result?.content?.children[0]?.children) { + if (data?.result?.content?.children[0]?.children[0]?.children) { + identifiers = + data?.result?.content?.children[0]?.children[0]?.children[0]?.identifier; + }else 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); let allContents = [];