Skip to content

Commit

Permalink
hotfix: contentlanguageBilingual returns data directly if data is str…
Browse files Browse the repository at this point in the history
…ing. closes #1336
  • Loading branch information
syam babu committed Sep 19, 2024
1 parent 6d2fef3 commit 7e8e58f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/bilingual.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const contentLanguageBilingual = ({ calendarContentLanguage, data, requir
**/

if (!data) return '';
if (typeof data == 'string') return data;

if (requiredLanguageKey && data[requiredLanguageKey]) {
return data[requiredLanguageKey];
Expand Down

0 comments on commit 7e8e58f

Please sign in to comment.