Do not filter blank ingredients and instructions
This commit is contained in:
@@ -25,8 +25,8 @@ class RecipeInfoViewModel @Inject constructor(
|
|||||||
showIngredients = entity.recipeIngredients.isNotEmpty(),
|
showIngredients = entity.recipeIngredients.isNotEmpty(),
|
||||||
showInstructions = entity.recipeInstructions.isNotEmpty(),
|
showInstructions = entity.recipeInstructions.isNotEmpty(),
|
||||||
summaryEntity = entity.recipeSummaryEntity,
|
summaryEntity = entity.recipeSummaryEntity,
|
||||||
recipeIngredients = entity.recipeIngredients.filter { it.note.isNotBlank() },
|
recipeIngredients = entity.recipeIngredients,
|
||||||
recipeInstructions = entity.recipeInstructions.filter { it.text.isNotBlank() },
|
recipeInstructions = entity.recipeInstructions,
|
||||||
title = entity.recipeSummaryEntity.name,
|
title = entity.recipeSummaryEntity.name,
|
||||||
description = entity.recipeSummaryEntity.description,
|
description = entity.recipeSummaryEntity.description,
|
||||||
disableAmounts = entity.recipeEntity.disableAmounts,
|
disableAmounts = entity.recipeEntity.disableAmounts,
|
||||||
|
|||||||
Reference in New Issue
Block a user