fix typing issue

This commit is contained in:
Hayden 2022-10-31 21:40:48 -08:00
parent bb20cb8678
commit 010a15b927
No known key found for this signature in database
GPG key ID: 17CF79474E257545

View file

@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
import { Detail, Details } from "~~/components/global/DetailsSection/types"; import { CustomDetail, Detail, Details } from "~~/components/global/DetailsSection/types";
import { ItemAttachment } from "~~/lib/api/types/data-contracts"; import { ItemAttachment } from "~~/lib/api/types/data-contracts";
definePageMeta({ definePageMeta({
@ -70,7 +70,7 @@
); );
}); });
const itemDetails = computed(() => { const itemDetails = computed<Details>(() => {
return [ return [
{ {
name: "Description", name: "Description",
@ -107,11 +107,11 @@
const url = maybeUrl(field.textValue); const url = maybeUrl(field.textValue);
if (url.isUrl) { if (url.isUrl) {
return { return {
type: "link",
name: field.name, name: field.name,
text: url.text, text: url.text,
type: "link",
href: url.url, href: url.url,
}; } as CustomDetail;
} }
return { return {