Fix but with units

main v0.0.6
DustyP 4 years ago
parent 9ebb0c8c7d
commit 48fe3ce96b

@ -126,13 +126,13 @@ export default {
size: null,
unit: null,
units: [
"Teaspoon",
"Tablespoon",
"Cup",
"Ounce",
"Gram",
"Pound",
"Individual",
{ value: 0, text: "Teaspoon" },
{ value: 1, text: "Tablespoon" },
{ value: 2, text: "Cup" },
{ value: 3, text: "Ounce" },
{ value: 4, text: "Gram" },
{ value: 5, text: "Pound" },
{ value: 6, text: "Individual" },
],
barcode: "",
barcodeReader: "none",
@ -191,7 +191,7 @@ export default {
name: this.name,
description: this.description,
size: this.size,
unit: this.unit,
unit: this.unit.value,
location: {"id": this.location},
barcode: this.barcode,
};

Loading…
Cancel
Save