@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.
- 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
@@ -1058,8 +1058,7 @@ const keepFlowInitialized = (route) => {
|
|
1058
1058
|
if (!flowId) {
|
1059
1059
|
return true;
|
1060
1060
|
}
|
1061
|
-
|
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
|
}
|