various fixes food serializer

This commit is contained in:
vabene1111
2021-09-08 15:05:54 +02:00
parent 76b1ab9e85
commit 19d152461c
16 changed files with 191 additions and 116 deletions

View File

@ -224,7 +224,7 @@ export default {
this.refreshThis(thisItem.id)
StandardToasts.makeStandardToast(StandardToasts.SUCCESS_UPDATE)
}).catch((err) => {
console.log(err)
console.log(err, err.response)
StandardToasts.makeStandardToast(StandardToasts.FAIL_UPDATE)
})
}

View File

@ -44,7 +44,7 @@ export default {
},
watch: {
'new_value': function () {
this.$root.$emit('change', this.field, this.new_value?.id ?? null)
this.$root.$emit('change', this.field, this.new_value ?? null)
},
},
}