@veloceapps/sdk 11.0.0-121 → 11.0.0-122

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.
@@ -1454,13 +1454,6 @@ class ConfigurationStateService {
1454
1454
  return of({ id: '' });
1455
1455
  }
1456
1456
  const { standalone } = this.flowInfoService.flow.properties;
1457
- if (standalone) {
1458
- const request = {
1459
- transactionContext: state,
1460
- flowId: this.flowInfoService.flow.id,
1461
- };
1462
- return this.salesTransactionApiService.save(request).pipe(switchMap(r => this.flowStateService.executeRequest$({}, true).pipe(map(() => r))), map(id => ({ id })));
1463
- }
1464
1457
  const transactionContext = this.salesTransactionService.state;
1465
1458
  const configurationRoot = this.configurationService.root;
1466
1459
  if (!transactionContext || !configurationRoot) {
@@ -1482,6 +1475,13 @@ class ConfigurationStateService {
1482
1475
  salesTransactionItems,
1483
1476
  },
1484
1477
  };
1478
+ if (standalone) {
1479
+ const request = {
1480
+ transactionContext: newState,
1481
+ flowId: this.flowInfoService.flow.id,
1482
+ };
1483
+ return this.salesTransactionApiService.save(request).pipe(switchMap(r => this.flowStateService.executeRequest$({}, true).pipe(map(() => r))), map(id => ({ id })));
1484
+ }
1485
1485
  return this.flowConfigurationService.calculate$(newState).pipe(switchMap(() => this.flowStateService.executeRequest$({}, true)), map(() => ({ id: '' })));
1486
1486
  }
1487
1487
  cancelConfiguration() {