@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.
@@ -1051,8 +1051,7 @@ const keepFlowInitialized = (route) => {
1051
1051
  if (!flowId) {
1052
1052
  return true;
1053
1053
  }
1054
- const params = { ...route.queryParams, ...flow?.properties.queryParams };
1055
- return flowInfoService.init$(flowId, params).pipe(map(() => true), catchError(e => {
1054
+ return flowInfoService.init$(flowId, route.queryParams).pipe(map(() => true), catchError(e => {
1056
1055
  const message = e instanceof HttpErrorResponse ? e.error.message : e;
1057
1056
  const errorDetails = isVeloceError(e.error) ? extractErrorDetails(e.error) : [];
1058
1057
  return routerService.showErrorPage$(message, errorDetails);
@@ -1470,7 +1469,7 @@ class ProductComponent {
1470
1469
  }
1471
1470
  return quoteDraft$.pipe(first(), switchMap(quote => {
1472
1471
  const contextProperties = this.contextService.resolve().properties;
1473
- const productId = contextProperties.productId;
1472
+ const productId = contextProperties.productId ?? this.flowInfoService.flow?.properties.queryParams['productId'];
1474
1473
  if (!productId) {
1475
1474
  throw new Error(`Unable to start configuration for 'productId == null'`);
1476
1475
  }