ng-miam 6.4.11 → 6.4.12

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.
@@ -12205,7 +12205,7 @@
12205
12205
  request = request.clone({
12206
12206
  setHeaders: {
12207
12207
  'miam-origin': context.origin.value,
12208
- 'miam-front-version': '6.4.11',
12208
+ 'miam-front-version': '6.4.12',
12209
12209
  'miam-front-type': 'web',
12210
12210
  'miam-api-version': '4.7.0'
12211
12211
  }
@@ -19402,17 +19402,17 @@
19402
19402
  if (this.noMoreRecipes) {
19403
19403
  return rxjs.of([]);
19404
19404
  }
19405
- // keep a copy of the filters when request is sent, so we can check they are still the same when it is received
19406
- // Because if it's not the case we have to ignore the results
19407
- var requestFilters = this.filters.copy();
19408
- if (this.context.displayIngredientPicturesOnRecipeCards && !recipeIncludes$2.includes('ingredients')) {
19409
- recipeIncludes$2.push('ingredients');
19410
- recipeSparseFields$2.recipes.push('ingredients');
19411
- Object.assign(recipeSparseFields$2, { ingredients: ['name', 'quantity', 'unit', 'active', 'forced-eans', 'picture-url', 'position'] });
19412
- }
19413
- return this.recipesService.addMandatoryCompletionToFilter(requestFilters).pipe(operators.switchMap(function () {
19414
- return _this.recipesService.filter(requestFilters, { size: 20, number: page }, recipeIncludes$2, recipeSparseFields$2, _this.modifiedGuests, _this.randomMode, _this.sort);
19415
- }), operators.switchMap(function (result) { return _this.processResults(result, requestFilters, page); }));
19405
+ return this.recipesService.addMandatoryCompletionToFilter(this.filters).pipe(operators.switchMap(function () {
19406
+ // keep a copy of the filters when request is sent, so we can check they are still the same when it is received
19407
+ // Because if it's not the case we have to ignore the results
19408
+ var requestFilters = _this.filters.copy();
19409
+ if (_this.context.displayIngredientPicturesOnRecipeCards && !recipeIncludes$2.includes('ingredients')) {
19410
+ recipeIncludes$2.push('ingredients');
19411
+ recipeSparseFields$2.recipes.push('ingredients');
19412
+ Object.assign(recipeSparseFields$2, { ingredients: ['name', 'quantity', 'unit', 'active', 'forced-eans', 'picture-url', 'position'] });
19413
+ }
19414
+ return _this.recipesService.filter(requestFilters, { size: 20, number: page }, recipeIncludes$2, recipeSparseFields$2, _this.modifiedGuests, _this.randomMode, _this.sort).pipe(operators.switchMap(function (result) { return _this.processResults(result, requestFilters, page); }));
19415
+ }));
19416
19416
  };
19417
19417
  CatalogListComponent.prototype.processResults = function (results, requestFilters, page) {
19418
19418
  var _this = this;