@veloceapps/sdk 7.0.2-25 → 7.0.2-26

Sign up to get free protection for your applications and to get access to all the features.
@@ -375,6 +375,13 @@ class RuntimeService {
375
375
  observable$ = observable$.pipe(map(() => this.deleteElement(operation)));
376
376
  break;
377
377
  }
378
+ case 'replace': {
379
+ observable$ = observable$.pipe(switchMap(() => {
380
+ this.deleteElement({ op: 'remove', path: operation.path });
381
+ return this.addElement$({ op: 'add', path: operation.path, value: operation.value });
382
+ }));
383
+ break;
384
+ }
378
385
  default:
379
386
  observable$ = of();
380
387
  }