Skip to content

Add guard when channel.accessible_languages is null#2929

Merged
rtibbles merged 1 commit intolearningequality:hotfixesfrom
jonboiser:guard-null-accessibles_language
Feb 10, 2021
Merged

Add guard when channel.accessible_languages is null#2929
rtibbles merged 1 commit intolearningequality:hotfixesfrom
jonboiser:guard-null-accessibles_language

Conversation

@jonboiser
Copy link
Copy Markdown
Contributor

Please remove any unused sections

Description

Adds guard in the ChannelCatalogFrontPage component to handle cases when channel.accessibles_languages is null, to avoid a type error when trying to access null.length.

Issue Addressed (if applicable)

This might be the root cause of #2914, which only occurs when trying to download a PDF report of multiple channels.

@rtibbles rtibbles added this to the Post Release Stabilization milestone Feb 10, 2021
@rtibbles rtibbles merged commit 2fcca0f into learningequality:hotfixes Feb 10, 2021
@jonboiser jonboiser deleted the guard-null-accessibles_language branch February 11, 2021 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants