fix bug in units

main v0.0.3
DustyP 4 years ago
parent 1f99413f22
commit 86b9a00036

@ -124,7 +124,7 @@ export default {
name: "", name: "",
description: "", description: "",
size: null, size: null,
unit: "", unit: null,
units: [ units: [
{ value: 0, text: "Teaspoon" }, { value: 0, text: "Teaspoon" },
{ value: 1, text: "Tablespoon" }, { value: 1, text: "Tablespoon" },
@ -191,7 +191,7 @@ export default {
name: this.name, name: this.name,
description: this.description, description: this.description,
size: this.size, size: this.size,
unit: this.unit.id, unit: this.unit,
location: {"id": this.location}, location: {"id": this.location},
barcode: this.barcode, barcode: this.barcode,
}; };

Loading…
Cancel
Save