@veloceapps/sdk 9.0.0-20 → 9.0.0-21

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.
@@ -1058,8 +1058,7 @@ const keepFlowInitialized = (route) => {
1058
1058
  if (!flowId) {
1059
1059
  return true;
1060
1060
  }
1061
- const params = Object.assign(Object.assign({}, route.queryParams), flow === null || flow === void 0 ? void 0 : flow.properties.queryParams);
1062
- return flowInfoService.init$(flowId, params).pipe(map(() => true), catchError(e => {
1061
+ return flowInfoService.init$(flowId, route.queryParams).pipe(map(() => true), catchError(e => {
1063
1062
  const message = e instanceof HttpErrorResponse ? e.error.message : e;
1064
1063
  const errorDetails = isVeloceError(e.error) ? extractErrorDetails(e.error) : [];
1065
1064
  return routerService.showErrorPage$(message, errorDetails);
@@ -1483,8 +1482,9 @@ class ProductComponent {
1483
1482
  quoteDraft$ = of(undefined);
1484
1483
  }
1485
1484
  return quoteDraft$.pipe(first(), switchMap(quote => {
1485
+ var _a, _b;
1486
1486
  const contextProperties = this.contextService.resolve().properties;
1487
- const productId = contextProperties.productId;
1487
+ const productId = (_a = contextProperties.productId) !== null && _a !== void 0 ? _a : (_b = this.flowInfoService.flow) === null || _b === void 0 ? void 0 : _b.properties.queryParams['productId'];
1488
1488
  if (!productId) {
1489
1489
  throw new Error(`Unable to start configuration for 'productId == null'`);
1490
1490
  }