mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-31 02:59:42 +02:00
fix: entry nutrition checker (#1448)
This commit is contained in:
parent
cb15db2d27
commit
b921e95163
1 changed files with 8 additions and 5 deletions
|
@ -81,9 +81,12 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const valueNotNull = computed(() => {
|
const valueNotNull = computed(() => {
|
||||||
Object.values(props.value).forEach((valueProperty) => {
|
let key: keyof Nutrition;
|
||||||
if (valueProperty && valueProperty !== "") return true;
|
for (key in props.value) {
|
||||||
});
|
if (props.value[key] !== null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -97,8 +100,8 @@ export default defineComponent({
|
||||||
labels,
|
labels,
|
||||||
valueNotNull,
|
valueNotNull,
|
||||||
showViewer,
|
showViewer,
|
||||||
updateValue
|
updateValue,
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue