@messaia/cdk 13.3.6-rc15 → 13.3.6-rc16

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.
@@ -7436,7 +7436,7 @@ class GenericListComponent extends BaseComponent {
7436
7436
  * @param includes Includes some navigations
7437
7437
  * @param successCallback A callback function to e called on success
7438
7438
  */
7439
- _patch(id, fields, value, includes, successCallback = null) {
7439
+ _patch(id, fields, value, includes, successCallback) {
7440
7440
  this.isSaving = true;
7441
7441
  /* Get entity by ID */
7442
7442
  let entity = this.dataSource.items?.filter(x => x.id === id)[0];
@@ -7446,13 +7446,14 @@ class GenericListComponent extends BaseComponent {
7446
7446
  /* Send request */
7447
7447
  this.service
7448
7448
  .patch(id, patches, null, { headers: { 'Show-Message': 'Yes' }, params: includes ? Utils.toHttpParams({ includes: includes }) : null })
7449
- .subscribe(x => {
7450
- this.isSaving = false;
7451
- /* Invoke callback function, if any */
7452
- if (successCallback) {
7453
- successCallback(x);
7454
- }
7455
- }, _ => this.isSaving = false);
7449
+ .subscribe({
7450
+ next: (x) => {
7451
+ this.isSaving = false;
7452
+ if (successCallback) {
7453
+ successCallback(x);
7454
+ }
7455
+ }, error: (_) => this.isSaving = false
7456
+ });
7456
7457
  }
7457
7458
  }
7458
7459
  /**