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