Skip to content

Defensive checks required around setUpItems() #2480

Description

@brian-learningpool

This is a bit of an edge case, but if an accordion component is added which does not contain any _items, the setUpItems function here (https://github.com/adaptlearning/adapt_framework/blob/master/src/core/js/models/itemsComponentModel.js#L24) fails and never runs for any subsequent components. As such the toJSON() call in the same code fails because _children is null and prevents the course from rendering.

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions