reset new list item after create

This commit is contained in:
smilerz
2021-12-22 10:19:15 -06:00
parent 279faadf46
commit 2d0a7330f3

View File

@@ -746,7 +746,7 @@ export default {
} else { } else {
console.log("no data returned") console.log("no data returned")
} }
this.new_item = { amount: 1 } this.new_item = { amount: 1, unit: undefined, food: undefined }
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)