@sumaris-net/ngx-components 1.23.3 → 1.23.4

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.
@@ -26087,14 +26087,13 @@
26087
26087
  delete: { get: function () { return _super_1.prototype.delete; } }
26088
26088
  });
26089
26089
  return __awaiter(this, void 0, void 0, function () {
26090
- var data, rowsById, rowNotDeleted, err_1;
26090
+ var data, rowNotDeleted, err_1;
26091
26091
  var _this = this;
26092
26092
  return __generator(this, function (_b) {
26093
26093
  switch (_b.label) {
26094
26094
  case 0:
26095
26095
  this.markAsLoading();
26096
26096
  data = this.getDataFromRows(rows);
26097
- rowsById = Beans.collectById(rows);
26098
26097
  _b.label = 1;
26099
26098
  case 1:
26100
26099
  _b.trys.push([1, 3, 4, 5]);
@@ -26103,14 +26102,7 @@
26103
26102
  case 2:
26104
26103
  // Call service deletion
26105
26104
  _b.sent();
26106
- rowNotDeleted = Object.getOwnPropertyNames(rowsById)
26107
- .reduce(function (res, id) {
26108
- var row = rowsById[id];
26109
- var present = _this.getRow(+id) === row;
26110
- return present ? res.concat(row) : res;
26111
- }, []);
26112
- //this.getRows().filter(row => rows.includes(row));
26113
- // Apply missing deletion
26105
+ rowNotDeleted = this.getRows().filter(rows.includes);
26114
26106
  if (isNotEmptyArray(rowNotDeleted)) {
26115
26107
  console.warn("[table-datasource] Force deletion of " + rowNotDeleted.length + " rows (Is service update the cache ?)");
26116
26108
  rowNotDeleted