1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-23 22:25:56 -04:00

New: Store and use original Series language

This commit is contained in:
Qstick
2022-10-02 20:29:53 -05:00
committed by Mark McDowall
parent 5400bce129
commit be0fa73129
29 changed files with 193 additions and 113 deletions
@@ -11,7 +11,22 @@ function createMapStateToProps() {
return createSelector(
createLanguagesSelector(),
(languages) => {
return languages;
const {
isFetching,
isPopulated,
error,
items
} = languages;
const filterItems = ['Any', 'Original'];
const filteredLanguages = items.filter((lang) => !filterItems.includes(lang.name));
return {
isFetching,
isPopulated,
error,
items: filteredLanguages
};
}
);
}