mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
fix: fundings
This commit is contained in:
parent
a8d730f633
commit
bd9bad35d1
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ type Fundings = {
|
|||
}
|
||||
|
||||
function useFundings(project?: Partial<Project>) {
|
||||
const fundings = ref<Fundings[]>(project?.funding as Fundings[] || [])
|
||||
const fundings = ref<Fundings[]>(Array.isArray(project?.funding) ? project?.funding as unknown as Fundings[] : [project?.funding as unknown as Fundings])
|
||||
const newFunding = reactive<Fundings>({
|
||||
name: '',
|
||||
link: '',
|
||||
|
@ -59,7 +59,7 @@ defineExpose({
|
|||
<ProjectCreateComponentsItem
|
||||
v-for="funding in fundings"
|
||||
:key="funding.name"
|
||||
@remove="() => removeFunding(fundings.indexOf(funding))"
|
||||
@remove="() => removeFunding(fundings?.indexOf(funding))"
|
||||
>
|
||||
<template #label>
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue