Skip to content

Commit a7c89b3

Browse files
committed
refactor:added validation
1 parent 83ea461 commit a7c89b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload-api/migration-sitecore/libs/extractLocales.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const extractLocales = (dir) => {
1111
for (const item of items) {
1212
const fullPath = path?.join?.(dir, item?.name);
1313

14-
if (item.isDirectory()) {
14+
if (item?.isDirectory()) {
1515
extractLocales?.(fullPath); // Proper recursion
1616
} else if (item?.isFile() && item?.name === "data.json.json") {
1717
try {

0 commit comments

Comments
 (0)