@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.
- package/core/services/flow-info.service.d.ts +1 -1
- package/esm2020/core/services/flow-info.service.mjs +6 -4
- package/esm2020/src/guards/flow.guard.mjs +2 -3
- package/esm2020/src/pages/product/product.component.mjs +2 -2
- package/fesm2015/veloceapps-sdk-core.mjs +5 -3
- package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2015/veloceapps-sdk.mjs +3 -3
- package/fesm2015/veloceapps-sdk.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk-core.mjs +5 -3
- package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
- package/fesm2020/veloceapps-sdk.mjs +2 -3
- package/fesm2020/veloceapps-sdk.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1051,8 +1051,7 @@ const keepFlowInitialized = (route) => {
|
|
|
1051
1051
|
if (!flowId) {
|
|
1052
1052
|
return true;
|
|
1053
1053
|
}
|
|
1054
|
-
|
|
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
|
}
|