diff --git a/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.js b/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.js index 55404c184c..3047b434c8 100644 --- a/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.js +++ b/app/javascript/flavours/glitch/features/subscribed_languages_modal/index.js @@ -78,6 +78,10 @@ class SubscribedLanguagesModal extends ImmutablePureComponent { const language = this.props.languages.find(language => language[0] === value); const checked = this.state.selectedLanguages.includes(value); + if (!language) { + return null; + } + return (