@lingk/sync 0.1.54 → 0.1.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1035,9 +1035,11 @@ module.exports =
1035
1035
  !sectionLabels ? vals && vals.map(function (val, i) {
1036
1036
  return _react2.default.createElement(
1037
1037
  _reactLightningDesignSystem.MenuItem,
1038
- { value: val[fieldPropLabel], key: i, onClick: function onClick() {
1039
- onSelect(val[fieldPropLabel], i, val.recordTypeId ? val.recordTypeId : null);
1040
- }, icon: val.isSelected ? 'check' : 'none' },
1038
+ { value: val[fieldPropLabel], key: i,
1039
+ onClick: function onClick() {
1040
+ return onSelect(val[fieldPropLabel], i, val);
1041
+ },
1042
+ icon: val.isSelected ? 'check' : 'none' },
1041
1043
  val[fieldPropLabel]
1042
1044
  );
1043
1045
  }) : vals && vals.map(function (val, i) {
@@ -1072,9 +1074,11 @@ module.exports =
1072
1074
  // normal field
1073
1075
  _react2.default.createElement(
1074
1076
  _reactLightningDesignSystem.MenuItem,
1075
- { value: val[fieldPropLabel], key: i, onClick: function onClick() {
1076
- onSelect(val[fieldPropLabel], i, val.recordTypeId ? val.recordTypeId : null, val.section, val.parents, val.parentRef);
1077
- }, icon: val.isSelected ? 'check' : 'none',
1077
+ { value: val[fieldPropLabel], key: i,
1078
+ onClick: function onClick() {
1079
+ return onSelect(val[fieldPropLabel], i, val);
1080
+ },
1081
+ icon: val.isSelected ? 'check' : 'none',
1078
1082
  style: {
1079
1083
  paddingLeft: 8 + val.iteration * 15 + (val.parentRef ? val.parentRef.length * 15 + 8 : 8),
1080
1084
  marginLeft: val.isSelected ? 0 : 'initial'