From 50cfd9506de9828144dbb42ff2be126e3d2c69c2 Mon Sep 17 00:00:00 2001 From: Shreya Bhandari Date: Sat, 7 Sep 2024 02:56:01 -0700 Subject: [PATCH] added console log --- src/config/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/config.js b/src/config/config.js index 1ddcb17f5ac..255c206f332 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -102,7 +102,6 @@ const coursePlans = courses; const _coursePlansNoEditor = coursePlans.filter(({ editor }) => !!!editor); const lessonPlans = []; -console.log(coursePlans.length) for (let i = 0; i < coursePlans.length; i++) { const course = coursePlans[i]; for (let j = 0; j < course.lessons.length; j++) { @@ -123,6 +122,8 @@ const _lessonPlansNoEditor = lessonPlans.filter( ); const findLessonById = (ID) => { + console.log(ID) + console.log(_lessonPlansNoEditor) return _lessonPlansNoEditor.find((lessonPlan) => lessonPlan.id === ID); };