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({