Do not filter blank ingredients and instructions

This commit is contained in:
Kirill Kamakin
2022-12-04 18:59:20 +01:00
parent 9b1229655a
commit 58ccd10f35

View File

@@ -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,