A continuation of HomeBox the inventory and organization system built for the Home User
fix: stop item page from crashing
tonyaellie8807da39d880
diff --git a/frontend/components/Item/AttachmentsList.vue b/frontend/components/Item/AttachmentsList.vueindex 9e84228b..1a09c335 100644--- a/frontend/components/Item/AttachmentsList.vue+++ b/frontend/components/Item/AttachmentsList.vue@@ -10,28 +10,24 @@<span class="ml-2 w-0 flex-1 truncate"> {{ attachment.title }}</span></div><div class="ml-4 flex shrink-0 gap-2">- <TooltipProvider :delay-duration="0">+ <!-- <TooltipProvider :delay-duration="0"><Tooltip>- <TooltipTrigger as-child>- <a- :class="buttonVariants({ size: 'icon' })"- :href="attachmentURL(attachment.id)"- :download="attachment.title"- >- <MdiDownload />- </a>- </TooltipTrigger>+ <TooltipTrigger as-child> -->+ <a :class="buttonVariants({ size: 'icon' })" :href="attachmentURL(attachment.id)" :download="attachment.title">+ <MdiDownload />+ </a>+ <!-- </TooltipTrigger><TooltipContent> {{ $t("components.item.attachments_list.download") }} </TooltipContent></Tooltip><Tooltip>- <TooltipTrigger as-child>- <a :class="buttonVariants({ size: 'icon' })" :href="attachmentURL(attachment.id)" target="_blank">- <MdiOpenInNew />- </a>- </TooltipTrigger>+ <TooltipTrigger as-child> -->+ <a :class="buttonVariants({ size: 'icon' })" :href="attachmentURL(attachment.id)" target="_blank">+ <MdiOpenInNew />+ </a>+ <!-- </TooltipTrigger><TooltipContent> {{ $t("components.item.attachments_list.open_new_tab") }} </TooltipContent></Tooltip>- </TooltipProvider>+ </TooltipProvider> --></div></li></ul>@@ -43,7 +39,7 @@import MdiDownload from "~icons/mdi/download";import MdiOpenInNew from "~icons/mdi/open-in-new";import { buttonVariants } from "@/components/ui/button";- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";+ // import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";const props = defineProps({attachments: {diff --git a/frontend/components/global/DetailsSection/DetailsSection.vue b/frontend/components/global/DetailsSection/DetailsSection.vueindex 5ab63d87..5cf58806 100644--- a/frontend/components/global/DetailsSection/DetailsSection.vue+++ b/frontend/components/global/DetailsSection/DetailsSection.vue@@ -1,7 +1,7 @@<template><div class="border-t px-4 py-5 sm:p-0"><dl class="sm:divide-y">- <div v-for="(detail, i) in details" :key="i" class="group py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">+ <div v-for="(detail) in details" :key="detail.name" class="group py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"><dt class="text-sm font-medium">{{ $t(detail.name) }}</dt>