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.
- package/bundles/ng-miam.umd.js +3 -3
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_services/recipe-likes.service.js +4 -4
- package/fesm2015/ng-miam.js +3 -3
- package/fesm2015/ng-miam.js.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3142,15 +3142,15 @@
|
|
|
3142
3142
|
};
|
|
3143
3143
|
RecipeLikesService.prototype.afterCLeanAddLikesToRecipes = function (recipes) {
|
|
3144
3144
|
var _this = this;
|
|
3145
|
-
|
|
3146
|
-
if (
|
|
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:
|
|
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) {
|