@sumaris-net/ngx-components 1.8.2-rc1 → 1.8.2-rc2

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.
@@ -21877,7 +21877,7 @@ class AppTable {
21877
21877
  return true;
21878
21878
  }
21879
21879
  save(opts) {
21880
- var _a, _b, _c;
21880
+ var _a, _b, _c, _d;
21881
21881
  return __awaiter(this, void 0, void 0, function* () {
21882
21882
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
21883
21883
  if (this.readOnly) {
@@ -21886,7 +21886,7 @@ class AppTable {
21886
21886
  this.resetError();
21887
21887
  // Keep edited row id (should be done BEFORE confirmEditCreate() )
21888
21888
  this.previouslyEditedRowId = opts.keepEditing && ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id));
21889
- const previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_c = this.singleSelectedRow) === null || _c === void 0 ? void 0 : _c.currentData);
21889
+ const previouslyEditedData = isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData);
21890
21890
  if (!this.confirmEditCreate()) {
21891
21891
  throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
21892
21892
  }