gd-sprest-react
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -124,3 +124,3 @@ "use strict"; | ||
.execute(function (items) { | ||
var defaultValue = _this.props.defaultValue ? _this.props.defaultValue : null; | ||
var defaultValue = _this.props.defaultValue ? _this.props.defaultValue : 0; | ||
var options = []; | ||
@@ -139,3 +139,3 @@ // Add an empty option for single lookup fields | ||
key: item.Id, | ||
selected: item.Id == (defaultValue ? defaultValue.ID : 0), | ||
selected: item.Id == (defaultValue.ID ? defaultValue.ID : defaultValue), | ||
text: item[_this.state.fieldInfo.lookupFieldName] | ||
@@ -149,3 +149,3 @@ }; | ||
var result = results[j]; | ||
var itemId = typeof (result) === "number" ? result : result.ID; | ||
var itemId = result.ID ? result.ID : result; | ||
// See if this is the current option | ||
@@ -152,0 +152,0 @@ if (option.key == itemId) { |
{ | ||
"name": "gd-sprest-react", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "SharePoint react components.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
90182