ywana-core8 0.0.130 → 0.0.134

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.
package/dist/index.umd.js CHANGED
@@ -4265,17 +4265,16 @@
4265
4265
  var all = pageContext.all,
4266
4266
  checked = pageContext.checked;
4267
4267
  var count = checked.size + "/" + all.length;
4268
- var rows = [].concat(checked).map(function (id) {
4269
- return all.find(function (item) {
4270
- return item.id === id;
4271
- });
4268
+ var rows = all.filter(function (item) {
4269
+ return checked.has(item.id);
4272
4270
  });
4271
+ console.log(count, rows);
4273
4272
  var table = {
4274
4273
  columns: [{
4275
4274
  id: "idMatricula",
4276
4275
  label: "ID Matricula"
4277
4276
  }],
4278
- rows: rows
4277
+ rows: rows || []
4279
4278
  };
4280
4279
  return /*#__PURE__*/React__default["default"].createElement("div", {
4281
4280
  className: "table-selector"