@veloceapps/sdk 8.0.0-176 → 8.0.0-178

Sign up to get free protection for your applications and to get access to all the features.
@@ -978,7 +978,9 @@ class FlowStateService {
978
978
  else {
979
979
  const quoteDraft = this.quoteDraftService.quoteDraftForActivePriceList;
980
980
  if (quoteDraft) {
981
- return this.quoteApiService.upsertQuote(quoteDraft);
981
+ return this.quoteApiService.upsertQuote(quoteDraft).pipe(tap$1(({ configurationId }) => {
982
+ this.contextService.update({ properties: { ConfigurationId: configurationId } });
983
+ }));
982
984
  }
983
985
  }
984
986
  return of({ quoteId: '' });
@@ -992,7 +994,9 @@ class FlowStateService {
992
994
  else {
993
995
  const quoteDraft = this.quoteDraftService.quoteDraftForActivePriceList;
994
996
  if (quoteDraft) {
995
- return this.quoteApiService.submitQuote(quoteDraft);
997
+ return this.quoteApiService.submitQuote(quoteDraft).pipe(tap$1(({ configurationId }) => {
998
+ this.contextService.update({ properties: { ConfigurationId: configurationId } });
999
+ }));
996
1000
  }
997
1001
  }
998
1002
  return of({ quoteId: '' });