We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
setUpItems
toJSON()
_children
The text was updated successfully, but these errors were encountered:
Resolves #2480, adds a guard on '_items' property
e778b5b
If '_items' was not set this would throw an error which would prevent the content from loading.
f5cfe17
Resolves #2480, adds a guard on '_items' property (#2491)
76cdc2a
* Resolves #2480, adds a guard on '_items' property If '_items' was not set this would throw an error which would prevent the content from loading.
25579f4
brian-learningpool
No branches or pull requests
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 thetoJSON()
call in the same code fails because_children
is null and prevents the course from rendering.The text was updated successfully, but these errors were encountered: