Skip to content

Commit

Permalink
fix: prevent error when passing empty language object #162
Browse files Browse the repository at this point in the history
  • Loading branch information
nshenderov committed Sep 26, 2024
1 parent 235aa66 commit daa6a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/components/Input/config/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,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 daa6a3c

Please sign in to comment.