From 7e8e58f503dd67509dd5f672734b1ec6c124ec18 Mon Sep 17 00:00:00 2001 From: syam babu Date: Thu, 19 Sep 2024 11:45:43 +0530 Subject: [PATCH] hotfix: contentlanguageBilingual returns data directly if data is string. closes #1336 --- src/utils/bilingual.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/bilingual.js b/src/utils/bilingual.js index 8c593c7c..201b2144 100644 --- a/src/utils/bilingual.js +++ b/src/utils/bilingual.js @@ -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];