fixed food editor default properties unit

This commit is contained in:
vabene1111
2023-06-29 17:26:49 +02:00
parent ce02a23dbb
commit 237bcb92c9

View File

@ -293,7 +293,9 @@ export default {
if (this.item1.id !== undefined) {
pf = apiClient.retrieveFood(this.item1.id).then((r) => {
this.food = r.data
if (this.food.properties_food_unit === null) {
this.food.properties_food_unit = {name: 'g'}
}
}).catch(err => {
StandardToasts.makeStandardToast(this, StandardToasts.FAIL_FETCH, err)
})