Skip to content

Commit

Permalink
strapi normalize fix and bump 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
omeraplak committed Aug 10, 2021
1 parent 074759b commit 8d0c2c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/strapi/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/strapi/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/strapi/src/helpers/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const mediaUploadMapper = (params: any) => {
Object.keys(params).map((item) => {
if (params[item]) {
const param = params[item].fileList;
const isMediaField = Array.isArray(param) && param[0]["uid"];
const isMediaField = Array.isArray(param);
if (isMediaField) {
const ids = [];
for (const item of param) {
Expand Down

0 comments on commit 8d0c2c6

Please sign in to comment.