Skip to content

Commit 77fef59

Browse files
committed
added mapper
1 parent a57b553 commit 77fef59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/services/sitecore.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const mapLocales = ({ masterLocale, locale, locales }: any) => {
6161
return key;
6262
}
6363
}
64-
return locale.toLowerCase();
64+
return locale?.toLowerCase?.();
6565
}
6666

6767

0 commit comments

Comments
 (0)