summaryrefslogtreecommitdiffhomepage
path: root/frontend/src/utilities/languages.ts
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2022-02-24 01:05:23 +0800
committerLASER-Yi <[email protected]>2022-02-24 01:05:23 +0800
commit63f1e63fa83fbf789061e58652d157f8965ff527 (patch)
treee656e4876d942f6f0a2ed68165799b9341ed750f /frontend/src/utilities/languages.ts
parentbb806defdb222218a5c65fd4dda2c8a5ac06043c (diff)
downloadbazarr-63f1e63fa83fbf789061e58652d157f8965ff527.tar.gz
bazarr-63f1e63fa83fbf789061e58652d157f8965ff527.zip
Fix a issue that seleection of the languages profiles could be Unknown on settings page
Diffstat (limited to 'frontend/src/utilities/languages.ts')
-rw-r--r--frontend/src/utilities/languages.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/utilities/languages.ts b/frontend/src/utilities/languages.ts
index 7077da959..077e7884d 100644
--- a/frontend/src/utilities/languages.ts
+++ b/frontend/src/utilities/languages.ts
@@ -10,7 +10,7 @@ export function useEnabledLanguages() {
const query = useLanguages();
const enabled = useMemo(() => {
- const data =
+ const data: Language.Info[] =
query.data
?.filter((v) => v.enabled)
.map((v) => ({ code2: v.code2, name: v.name })) ?? [];