Skip to content

Commit

Permalink
fix: prevent error when passing empty language object, closes #162
Browse files Browse the repository at this point in the history
  • Loading branch information
nshenderov committed Sep 26, 2024
1 parent e522791 commit f50e233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/Input/config/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ export const setLanguage = async (config) => {

await importLang(
config,
typeof config.language === 'string' ? config.language : config.language.ui
typeof config.language === 'string' ? config.language : ui
);
};

0 comments on commit f50e233

Please sign in to comment.