Skip to content

Commit

Permalink
Add more defaults if languages can't be found #280
Browse files Browse the repository at this point in the history
  • Loading branch information
sroertgen committed Nov 16, 2023
1 parent d6fef4e commit f4c12ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Concept.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Concept = ({
const conceptSchemes = getConceptSchemes()
const { data, _ } = useSkoHubContext()
const language = getUserLang({
availableLanguages,
availableLanguages: availableLanguages ?? data.conceptSchemeLanguages ?? [],
selectedLanguage: data?.selectedLanguage,
})
return (
Expand Down

0 comments on commit f4c12ed

Please sign in to comment.