- changed status to open
error loaidng page without sections
Issue #41
resolved
If you have a course that uses the “not reccomended” setting of ‘sub tiles in top section’ BUT there are no sections in the course, I get the ‘loading’ screen forever.
Turns out there’s a script error:
Uncaught TypeError: Cannot read property 'sections' of undefined
at Object.getContentSectionPositions (first.js:294)
at e (first.js:294)
at Object.runReOrg (first.js:294)
Throwing a rows length test inside the end of getContentSectionPositions will resolve the problem.
if (rows.length) rows[rows.length - 1].displayAfterTile =
rows[rows.length - 1].sections[(rows[rows.length - 1].sections).length - 1];
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Fixes issue
#41error on no sections course→ <<cset accf57fd736e>>
- Log in to comment
Thanks this will be fixed in the next version