mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 08:40:28 +00:00
fix typing issue
This commit is contained in:
parent
bb20cb8678
commit
010a15b927
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<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";
|
||||
|
||||
definePageMeta({
|
||||
|
@ -70,7 +70,7 @@
|
|||
);
|
||||
});
|
||||
|
||||
const itemDetails = computed(() => {
|
||||
const itemDetails = computed<Details>(() => {
|
||||
return [
|
||||
{
|
||||
name: "Description",
|
||||
|
@ -107,11 +107,11 @@
|
|||
const url = maybeUrl(field.textValue);
|
||||
if (url.isUrl) {
|
||||
return {
|
||||
type: "link",
|
||||
name: field.name,
|
||||
text: url.text,
|
||||
type: "link",
|
||||
href: url.url,
|
||||
};
|
||||
} as CustomDetail;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue