From 5fe8f65d64d7f0a6e4170504bf120f5248815dc9 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 12 May 2021 00:12:07 -0400 Subject: [PATCH] Fixed: Filter Unknown from Profile Language Select --- .../Quality/EditQualityProfileModalContentConnector.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContentConnector.js b/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContentConnector.js index 8dbf83fa6..47dfb8a68 100644 --- a/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContentConnector.js +++ b/frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContentConnector.js @@ -96,12 +96,13 @@ function createLanguagesSelector() { (state) => state.settings.languages, (languages) => { const items = languages.items; + const filterItems = ['Unknown']; if (!items) { return []; } - const newItems = items.map((item) => { + const newItems = items.filter((lang) => !filterItems.includes(lang.name)).map((item) => { return { key: item.id, value: item.name