From caf8f426200cbfe7b3ae87bf948de853e4aea6fb Mon Sep 17 00:00:00 2001 From: DomWane Date: Tue, 1 Oct 2024 13:52:19 +0200 Subject: [PATCH 1/6] fix: fundings --- components/Project/Create/Categories/Funding.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/Project/Create/Categories/Funding.vue b/components/Project/Create/Categories/Funding.vue index 810ee80..8cd90c7 100644 --- a/components/Project/Create/Categories/Funding.vue +++ b/components/Project/Create/Categories/Funding.vue @@ -11,7 +11,7 @@ type Fundings = { } function useFundings(project?: Partial) { - const fundings = ref(Array.isArray(project?.funding) ? project?.funding as unknown as Fundings[] : [project?.funding as unknown as Fundings]) + const fundings = ref(Array.isArray(project?.funding) ? project.funding : (project?.funding ? [project.funding] : [])) const newFunding = reactive({ name: '', link: '', @@ -58,7 +58,7 @@ defineExpose({ />