JS exception: Cannot read properties of null (reading 'bundle') on lesson page

Created on 28 February 2023, over 1 year ago
Updated 4 March 2023, over 1 year ago

Problem/Motivation

The js-exceptions:

TypeError: Cannot read properties of null (reading 'bundle')
    at ContentLesson.js:72:40

and

TypeError: Cannot read properties of null (reading 'bundle')
    at Paragraphs.js:7:14

throw for some lessons.

As result, there is a white page only.

Proposed resolution

That happens because there is a map loop where checking the bundle of every paragraph. If a paragraph is equal to NULL, then an exception will be thrown. That map-loop must receive only not null items.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus beloglazov91

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024