mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-04 00:30:27 +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">
|
<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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue