A continuation of HomeBox the inventory and organization system built for the Home User
fix: PR #347 broke ItemCard component, this fixes it.
Matt Kilgore5d51c74af2c8
diff --git a/.gitignore b/.gitignoreindex 51a835a4..a1ed69af 100644--- a/.gitignore+++ b/.gitignore@@ -56,4 +56,5 @@ backend/app/api/static/public/*!backend/app/api/static/public/.gitkeepbackend/api-docs/.vitepress/cache/\ No newline at end of file+docs/.vitepress/cache/+/.data/diff --git a/Taskfile.yml b/Taskfile.ymlindex 4d9c1aa2..dc3f73c4 100644--- a/Taskfile.yml+++ b/Taskfile.yml@@ -52,6 +52,8 @@ tasks:- cp ./backend/app/api/static/docs/swagger.json docs/docs/api/openapi-2.0.jsongo:run:+ env:+ HBOX_DEMO: truedesc: Starts the backend api server (depends on generate task)dir: backenddeps:diff --git a/frontend/components/Item/Card.vue b/frontend/components/Item/Card.vueindex 79222297..4b8997a7 100644--- a/frontend/components/Item/Card.vue+++ b/frontend/components/Item/Card.vue@@ -69,13 +69,14 @@},locationFlatTree: {type: Array as () => FlatTreeItem[],- required: true,+ required: false,+ default: () => [],},});- const locationString = computed(() => {- return props.locationFlatTree.find(l => l.id === props.item.location.id)?.treeString || props.item.location.name;- });+ const locationString = computed(+ () => props.locationFlatTree.find(l => l.id === props.item.location?.id)?.treeString || props.item.location?.name+ );</script><style lang="css"></style>