Skip to content

Commit b5004a0

Browse files
authored
Merge pull request #423 from abilpraju-aot/bugfix/FWF-4134
quick fix for lang reset
2 parents 20c6926 + 41c34d7 commit b5004a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forms-flow-nav/src/sidenav/Sidebar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const Sidebar = React.memo(({ props, sidenavHeight="100%" }) => {
141141
useEffect(() => {
142142
const locale = userDetail?.locale || tenant?.tenantData?.details?.locale || LANGUAGE;
143143
i18n.changeLanguage(locale);
144-
}, [userDetail, tenant?.tenantData]);
144+
}, [userDetail]);
145145

146146
React.useEffect(() => {
147147
const data = JSON.parse(StorageService.get("TENANT_DATA"));

0 commit comments

Comments
 (0)