Ajout du nom de la bannière dans les critères de recherche des recettes.

This commit is contained in:
FyloZ 2021-04-06 10:54:02 -04:00
parent cb35f8e595
commit 75bbbfeac1
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ export class ListComponent extends ErrorHandlingComponent {
}
private recipeMatchesSearchQuery(recipe: Recipe) {
const matches = this.searchString(recipe.name) ||
const matches = this.searchString(recipe.company.name) ||
this.searchString(recipe.name) ||
this.searchString(recipe.description) ||
(recipe.sample && this.searchString(recipe.sample.toString()))
this.hiddenRecipes[recipe.id] = !matches