From 75bbbfeac13d1113bef40112ea7dbc338604471a Mon Sep 17 00:00:00 2001 From: FyloZ Date: Tue, 6 Apr 2021 10:54:02 -0400 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20nom=20de=20la=20banni=C3=A8re=20da?= =?UTF-8?q?ns=20les=20crit=C3=A8res=20de=20recherche=20des=20recettes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/modules/colors/pages/list/list.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/modules/colors/pages/list/list.component.ts b/src/app/modules/colors/pages/list/list.component.ts index 84d98ac..21c3670 100644 --- a/src/app/modules/colors/pages/list/list.component.ts +++ b/src/app/modules/colors/pages/list/list.component.ts @@ -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