alaska-field-relationship
Advanced tools
Comparing version 0.11.22 to 0.11.24
12
index.js
@@ -27,3 +27,4 @@ // @flow | ||
view: 'RelationshipFieldView', | ||
filter: 'RelationshipFieldFilter' | ||
filter: 'RelationshipFieldFilter', | ||
defaultValue: '' | ||
}; | ||
@@ -89,3 +90,3 @@ | ||
type = dataType || TypeObjectId; | ||
options = type; | ||
options.type = type; | ||
if (typeof this.ref === 'string') { | ||
@@ -98,2 +99,9 @@ let arr = this.ref.split('.'); | ||
options.set = (value) => { | ||
if (value === '' && type === TypeObjectId) { | ||
return undefined; | ||
} | ||
return value; | ||
}; | ||
[ | ||
@@ -100,0 +108,0 @@ 'get', |
{ | ||
"name": "alaska-field-relationship", | ||
"version": "0.11.22", | ||
"version": "0.11.24", | ||
"description": "Alaska relationship field", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
15971
544