From bd9bad35d1ebc6babd020b006b9a8b72229055d6 Mon Sep 17 00:00:00 2001 From: DomWane Date: Mon, 30 Sep 2024 14:29:56 +0200 Subject: [PATCH 1/2] fix: fundings --- components/Project/Create/Categories/Funding.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Project/Create/Categories/Funding.vue b/components/Project/Create/Categories/Funding.vue index fecbbfb..810ee80 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(project?.funding as Fundings[] || []) + const fundings = ref(Array.isArray(project?.funding) ? project?.funding as unknown as Fundings[] : [project?.funding as unknown as Fundings]) const newFunding = reactive({ name: '', link: '', @@ -59,7 +59,7 @@ defineExpose({