@8base/utils
Advanced tools
Comparing version 0.4.25 to 0.4.26
@@ -384,3 +384,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
if ((isFileField(fieldSchema) || isRelationField(fieldSchema)) && isListField(fieldSchema)) { | ||
formatedFieldData = external_ramda_["reject"](external_ramda_["isNil"], formatedFieldData); | ||
if (external_ramda_["isNil"](formatedFieldData)) { | ||
formatedFieldData = []; | ||
} else { | ||
formatedFieldData = external_ramda_["reject"](external_ramda_["isNil"], formatedFieldData); | ||
} | ||
@@ -387,0 +391,0 @@ if (formatedFieldData.length === 0 && type === MUTATION_TYPE.CREATE) { |
{ | ||
"name": "@8base/utils", | ||
"version": "0.4.25", | ||
"version": "0.4.26", | ||
"main": "lib/utils.js", | ||
@@ -22,3 +22,3 @@ "scripts": { | ||
"devDependencies": { | ||
"@8base/webpack-configuration": "^0.4.25", | ||
"@8base/webpack-configuration": "^0.4.26", | ||
"babel-cli": "^6.26.0", | ||
@@ -25,0 +25,0 @@ "babel-core": "^6.26.3", |
@@ -58,3 +58,7 @@ //@flow | ||
if ((isFileField(fieldSchema) || isRelationField(fieldSchema)) && isListField(fieldSchema)) { | ||
formatedFieldData = R.reject(R.isNil, formatedFieldData); | ||
if (R.isNil(formatedFieldData)) { | ||
formatedFieldData = []; | ||
} else { | ||
formatedFieldData = R.reject(R.isNil, formatedFieldData); | ||
} | ||
@@ -61,0 +65,0 @@ if (formatedFieldData.length === 0 && type === MUTATION_TYPE.CREATE) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
294996
730