@veloceapps/sdk 9.0.0-20 → 9.0.0-21

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  }