ps-toolkit-ui 0.0.18 → 0.0.19

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.
@@ -1629,14 +1629,15 @@
1629
1629
  FormClass.prototype.setData = function (d) {
1630
1630
  this.inputs.forEach(function (inp) {
1631
1631
  var iv = _.get(d, inp.name);
1632
- var ivs = _.get(d, inp.name.replace('Id', ''));
1633
1632
  if (inp.type === exports.InputType.CarSearch) {
1633
+ var ivs = _.get(d, inp.name.replace('Id', ''));
1634
1634
  inp.setValue({ Search: ivs, Value: iv }, true);
1635
1635
  }
1636
1636
  else {
1637
1637
  inp.setValue(iv, true);
1638
1638
  }
1639
1639
  if (inp.type === exports.InputType.SelectAutoCompletePlaque || inp.type === exports.InputType.SelectAutoComplete) {
1640
+ var ivs = _.get(d, inp.name.replace('Id', ''));
1640
1641
  inp.setSearch(ivs);
1641
1642
  }
1642
1643
  });