ng-miam 4.7.2 → 4.7.3

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.
@@ -3142,15 +3142,15 @@
3142
3142
  };
3143
3143
  RecipeLikesService.prototype.afterCLeanAddLikesToRecipes = function (recipes) {
3144
3144
  var _this = this;
3145
- var recipeIds = recipes.map(function (r) { return r.id; }).filter(function (rid) { return !_this.activeRecipeLikes.has(rid); });
3146
- if (recipeIds.length == 0) {
3145
+ recipes = recipes.filter(function (recipe) { return !_this.activeRecipeLikes.has(recipe.id); });
3146
+ if (recipes.length == 0) {
3147
3147
  return rxjs.of(null);
3148
3148
  }
3149
3149
  ;
3150
3150
  return this.all({
3151
3151
  page: { size: 20, number: 1 },
3152
3152
  remotefilter: {
3153
- recipe_id: recipeIds.join(),
3153
+ recipe_id: recipes.map(function (r) { return r.id; }).join(),
3154
3154
  is_past: 'true,false'
3155
3155
  }
3156
3156
  }).pipe(operators.skipWhile(function (resp) { return resp.is_loading; }), operators.tap(function (result) {