fix(empty-states): properly render empty content warning and add e2e test config
This commit is contained in:
committed by
Khaled Garbaya
parent
005c8013f8
commit
1baef21340
@@ -14,7 +14,7 @@ block content
|
||||
.layout-centered
|
||||
+editorialFeatures(landingPage)
|
||||
.modules-container
|
||||
if landingPage.fields.contentModules.length
|
||||
if landingPage.fields.contentModules && landingPage.fields.contentModules.length
|
||||
each module in landingPage.fields.contentModules
|
||||
case module.sys.contentType.sys.id
|
||||
when 'layoutCopy'
|
||||
|
||||
@@ -9,7 +9,7 @@ mixin lesson(lesson, course, nextLesson)
|
||||
h1.lesson__title #{lesson.fields.title}
|
||||
+editorialFeatures(lesson)
|
||||
.lesson__modules
|
||||
if lesson.fields.modules.length
|
||||
if lesson.fields.modules && lesson.fields.modules.length
|
||||
each module in lesson.fields.modules
|
||||
if module.sys.contentType
|
||||
case module.sys.contentType.sys.id
|
||||
@@ -28,4 +28,3 @@ mixin lesson(lesson, course, nextLesson)
|
||||
+emptyModule()
|
||||
if nextLesson
|
||||
a.lesson__cta.cta(href=`/courses/${course.fields.slug}/lessons/${nextLesson.fields.slug}${queryString}`) #{translate('nextLessonLabel', currentLocale.code)}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ mixin moduleHighlightedCourse(module, course)
|
||||
.module.module-highlighted-course
|
||||
if(!course)
|
||||
.module-highlighted-course__wrapper
|
||||
.module-highlighted-course__overlay
|
||||
.module-highlighted-course__content
|
||||
h2.module-highlighted-course__title #{translate('errorHighlightedCourse', currentLocale.code)}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user