From 58ccd10f35ff10aa89a4becccc8143d61510ad48 Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Sun, 4 Dec 2022 18:59:20 +0100 Subject: [PATCH] Do not filter blank ingredients and instructions --- .../kirmanak/mealient/ui/recipes/info/RecipeInfoViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/gq/kirmanak/mealient/ui/recipes/info/RecipeInfoViewModel.kt b/app/src/main/java/gq/kirmanak/mealient/ui/recipes/info/RecipeInfoViewModel.kt index 043b0b0..b3fb8b6 100644 --- a/app/src/main/java/gq/kirmanak/mealient/ui/recipes/info/RecipeInfoViewModel.kt +++ b/app/src/main/java/gq/kirmanak/mealient/ui/recipes/info/RecipeInfoViewModel.kt @@ -25,8 +25,8 @@ class RecipeInfoViewModel @Inject constructor( showIngredients = entity.recipeIngredients.isNotEmpty(), showInstructions = entity.recipeInstructions.isNotEmpty(), summaryEntity = entity.recipeSummaryEntity, - recipeIngredients = entity.recipeIngredients.filter { it.note.isNotBlank() }, - recipeInstructions = entity.recipeInstructions.filter { it.text.isNotBlank() }, + recipeIngredients = entity.recipeIngredients, + recipeInstructions = entity.recipeInstructions, title = entity.recipeSummaryEntity.name, description = entity.recipeSummaryEntity.description, disableAmounts = entity.recipeEntity.disableAmounts,