From 5e5f616888209f84cd5a35d929ec0c5ab96aaeb3 Mon Sep 17 00:00:00 2001 From: dmitriylaukhin Date: Tue, 26 May 2026 16:22:18 +0500 Subject: [PATCH] debug: move banner outside kinescopeId block to catch null ID --- src/app/(student)/courses/[slug]/lessons/[lessonId]/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/(student)/courses/[slug]/lessons/[lessonId]/page.tsx b/src/app/(student)/courses/[slug]/lessons/[lessonId]/page.tsx index 0e1097a..7bd9134 100644 --- a/src/app/(student)/courses/[slug]/lessons/[lessonId]/page.tsx +++ b/src/app/(student)/courses/[slug]/lessons/[lessonId]/page.tsx @@ -122,12 +122,13 @@ export default async function LessonPage({ params }: Props) { {/* Title */}

{lesson.title}

+ {/* DEBUG: remove after fix */} +
DEBUG lessonId: {lessonId} | kinescopeId: {String(lesson.kinescopeId ?? "NULL")} | coverImage: {String(lesson.coverImage ?? "NULL")} | isAdmin: {String(isAdmin)}
+ {/* Video */} {lesson.kinescopeId && (
- {/* DEBUG: remove after fix */} -
DEBUG coverImage: {String(lesson.coverImage ?? "NULL")} | isAdmin: {String(isAdmin)}
)}