1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 07:39:41 +02:00

fix build errors

This commit is contained in:
hay-kot 2021-11-06 15:03:12 -08:00
parent c1ba8dcd86
commit 60275447f0
6 changed files with 6 additions and 6 deletions

View file

@ -147,8 +147,8 @@ export default defineComponent({
// for the parser. For now we'll leave it like this
properties.comment.value = data.ingredient.note || "";
properties.quantity.value = data.ingredient.quantity || "";
properties.unit.value = data.ingredient.unit.name || "";
properties.food.value = data.ingredient.food.name || "";
properties.unit.value = data.ingredient?.unit?.name || "";
properties.food.value = data.ingredient?.food?.name || "";
for (const property in properties) {
const color = getColor(property);