fix after rebase

This commit is contained in:
Chris Scoggins
2022-02-03 12:21:35 -06:00
parent dcad389010
commit 5e3f94fcf7
2 changed files with 2 additions and 2 deletions

View File

@ -826,7 +826,7 @@ export default {
this.facets = result.data.facets
this.recipes = [...this.removeDuplicates(result.data.results, (recipe) => recipe.id)]
if (!this.searchFiltered()) {
// if meal plans are being shown - filter out any meal plan recipes from the recipe list
// if meal plans are being shown (and only when search is unfiltered) - filter out any meal plan recipes from the recipe list
let mealPlans = []
this.meal_plans.forEach((x) => mealPlans.push(x.recipe.id))
this.recipes = this.recipes.filter((recipe) => !mealPlans.includes(recipe.id))