From 86b9a0003603c4dc0d1d976464b601a136dec274 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Tue, 12 Apr 2022 15:14:52 -0800 Subject: [PATCH] fix bug in units --- pkg/ui/frontend/src/components/AddItemForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ui/frontend/src/components/AddItemForm.vue b/pkg/ui/frontend/src/components/AddItemForm.vue index bbbd71f..f95d1af 100644 --- a/pkg/ui/frontend/src/components/AddItemForm.vue +++ b/pkg/ui/frontend/src/components/AddItemForm.vue @@ -124,7 +124,7 @@ export default { name: "", description: "", size: null, - unit: "", + unit: null, units: [ { value: 0, text: "Teaspoon" }, { value: 1, text: "Tablespoon" }, @@ -191,7 +191,7 @@ export default { name: this.name, description: this.description, size: this.size, - unit: this.unit.id, + unit: this.unit, location: {"id": this.location}, barcode: this.barcode, };