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 9, 2024
1 parent 2d50101 commit 7444e9d
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 7444e9d

Please sign in to comment.