@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.
@@ -217,9 +217,11 @@ class FlowInfoService {
217
217
  this.flowSubj$ = new BehaviorSubject(null);
218
218
  this.flow$ = this.flowSubj$.asObservable();
219
219
  }
220
- init$(flowId, params) {
221
- this.params = params;
222
- return this.flowsApiService.getFlow(flowId).pipe(switchMap(flow => this.initFlowTemplates$(flow).pipe(map$1(() => flow))), tap$1(flow => this.flowSubj$.next(flow)), map$1(noop), catchError(e => {
220
+ init$(flowId, routeQueryParams) {
221
+ return this.flowsApiService.getFlow(flowId).pipe(switchMap(flow => this.initFlowTemplates$(flow).pipe(map$1(() => flow))), tap$1(flow => {
222
+ this.params = { ...routeQueryParams, ...flow.properties.queryParams };
223
+ this.flowSubj$.next(flow);
224
+ }), map$1(noop), catchError(e => {
223
225
  this.flowSubj$.next(null);
224
226
  return throwError(() => e);
225
227
  }));