diff --git a/frontend/src/views/InventoryDetail.vue b/frontend/src/views/InventoryDetail.vue index ab8910b..ae72bdd 100644 --- a/frontend/src/views/InventoryDetail.vue +++ b/frontend/src/views/InventoryDetail.vue @@ -53,7 +53,21 @@ import {mapActions, mapGetters} from "vuex"; export default { name: "InventoryDetail", + data() { + return { + item: { + name: "", + description: "", + quantity: 0, + price: 0, + image: "", + tags: [], + properties: [] + } + } + }, components: { + PropertyField, TagField, BaseLayout, ...BIcons }, diff --git a/frontend/src/views/InventoryEdit.vue b/frontend/src/views/InventoryEdit.vue index 4e7220a..e715821 100644 --- a/frontend/src/views/InventoryEdit.vue +++ b/frontend/src/views/InventoryEdit.vue @@ -61,6 +61,19 @@ import PropertyField from "@/components/PropertyField.vue"; export default { name: "InventoryEdit", + data() { + return { + item: { + name: "", + description: "", + quantity: 0, + price: 0, + image: "", + tags: [], + properties: [] + } + } + }, components: { BaseLayout, TagField,