Skip to content

Commit 442c9e1

Browse files
Merge pull request #767 from contentstack/hotfix/language-map
Hotfix/language map
2 parents 667b222 + 95e518d commit 442c9e1

File tree

1 file changed

+1
-1
lines changed
  • upload-api/src/controllers/sitecore

1 file changed

+1
-1
lines changed

upload-api/src/controllers/sitecore/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const createLocaleSource = async ({
4040
'Content-Type': 'application/json',
4141
},
4242
data: {
43-
locale: Array.isArray(localeData) ? localeData : (localeData ? [localeData] : []),
43+
locale: Array.isArray(localeData) ? localeData : Array.from(localeData ?? [])
4444
},
4545
};
4646

0 commit comments

Comments
 (0)