From f4c12ed4baadc21fb6ac3f3c48988463af181c3c Mon Sep 17 00:00:00 2001 From: "@s.roertgen" Date: Thu, 16 Nov 2023 15:47:33 +0100 Subject: [PATCH] Add more defaults if languages can't be found #280 --- src/components/Concept.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Concept.jsx b/src/components/Concept.jsx index a6ed0b4..8b78930 100644 --- a/src/components/Concept.jsx +++ b/src/components/Concept.jsx @@ -13,7 +13,7 @@ const Concept = ({ const conceptSchemes = getConceptSchemes() const { data, _ } = useSkoHubContext() const language = getUserLang({ - availableLanguages, + availableLanguages: availableLanguages ?? data.conceptSchemeLanguages ?? [], selectedLanguage: data?.selectedLanguage, }) return (