@sumaris-net/ngx-components 2.4.90-rc4 → 2.4.90

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.
@@ -4728,7 +4728,7 @@ class AppFormArray extends UntypedFormArray {
4728
4728
  // Clean all
4729
4729
  this.resize(0, { emitEvent: options?.emitEvent });
4730
4730
  // Recreate each control, with a default value
4731
- (values || null).forEach(value => {
4731
+ (values || []).forEach(value => {
4732
4732
  const control = this.createControl(value);
4733
4733
  // Apply parent disabled state, before to push it into the array
4734
4734
  // This is need to avoid parent form to be enabled, after calling AppFormArray.patchValue() (e.g. in table's row validator)
@@ -17030,7 +17030,7 @@ class GraphqlService extends StartableService {
17030
17030
  };
17031
17031
  if (appError.code !== error.code || appError.message !== error.message) {
17032
17032
  // Store original error in details
17033
- appError.details = { error };
17033
+ appError.details = error;
17034
17034
  return appError;
17035
17035
  }
17036
17036
  // Keep error (with details, if any)
@@ -27367,8 +27367,9 @@ class AppTable {
27367
27367
  }
27368
27368
  async deleteSelection(event, opts) {
27369
27369
  const deleteCount = await this.deleteRows(event, this.selection.selected, opts);
27370
- if (deleteCount > 0)
27370
+ if (deleteCount > 0) {
27371
27371
  this.selection.clear();
27372
+ }
27372
27373
  return deleteCount;
27373
27374
  }
27374
27375
  /**
@@ -29390,8 +29391,8 @@ class AppEntityEditor extends AppTabEditor {
29390
29391
  }
29391
29392
  catch (err) {
29392
29393
  this.submitted = true;
29394
+ this.selectedTabIndex = 0; // Can be override by subclasses, using setError()
29393
29395
  this.setError(err);
29394
- this.selectedTabIndex = 0;
29395
29396
  this.scrollToTop(); // Scroll to top (to show error)
29396
29397
  this.markAsDirty();
29397
29398
  this.enable();
@@ -29456,8 +29457,8 @@ class AppEntityEditor extends AppTabEditor {
29456
29457
  }
29457
29458
  catch (err) {
29458
29459
  this.submitted = true;
29459
- this.setError(err);
29460
29460
  this.selectedTabIndex = 0;
29461
+ this.setError(err);
29461
29462
  this.markAsSaved();
29462
29463
  this.enable();
29463
29464
  return false;
@@ -29950,8 +29951,8 @@ class AppEntityEditorModal extends AppTabEditor {
29950
29951
  }
29951
29952
  catch (err) {
29952
29953
  this.submitted = true;
29954
+ this.selectedTabIndex = 0; // Can by override by subclasses, using setError()
29953
29955
  this.setError(err);
29954
- this.selectedTabIndex = 0;
29955
29956
  this.scrollToTop(); // Scroll to top (to show error)
29956
29957
  this.markAsDirty();
29957
29958
  this.enable();