Skip to content

Commit

Permalink
Fixed error when switching to new languages
Browse files Browse the repository at this point in the history
  • Loading branch information
1ec5 committed Aug 10, 2024
1 parent c56412c commit 4a3cd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ addEventListener('load', function () {
let languageCode = params.get('language');
let language = new MapboxLanguage({
defaultLanguage: languageCode,
supportedLanguages: languageCode,
supportedLanguages: languageCode ? [languageCode] : undefined,
languageSource: 'osm',
getLanguageField: (languageCode) => {
if (languageCode === 'mul') {
Expand Down

0 comments on commit 4a3cd76

Please sign in to comment.