@sumaris-net/ngx-components 0.13.7 → 0.13.8

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.
@@ -22441,7 +22441,13 @@
22441
22441
  };
22442
22442
  EntitiesTableDataSource.prototype.delete = function (id) {
22443
22443
  var _this = this;
22444
+ if (id === -1)
22445
+ return; // new row: no data to delete
22444
22446
  var row = this.getRow(id);
22447
+ if (!row) {
22448
+ console.error("[table-datasource] Row to delete with id=" + id + " not found");
22449
+ return;
22450
+ }
22445
22451
  this.$busy.next(true);
22446
22452
  this.dataService.deleteAll([row.currentData], this.serviceOptions)
22447
22453
  .catch(function (err) { return _this.handleErrorPromise(err); })