chore: remove type annotation for computed
This commit is contained in:
parent
31b7c1f217
commit
a3e289c06c
@ -40,7 +40,7 @@ export const useProjectStore = defineStore('project', () => {
|
|||||||
.filter(p => !p.isArchived && p.isFavorite))
|
.filter(p => !p.isArchived && p.isFavorite))
|
||||||
const hasProjects = computed(() => projectsArray.value.length > 0)
|
const hasProjects = computed(() => projectsArray.value.length > 0)
|
||||||
|
|
||||||
const getChildProjects = computed<IProject[]>(() => {
|
const getChildProjects = computed(() => {
|
||||||
return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id)
|
return (id: IProject['id']) => projectsArray.value.filter(p => p.parentProjectId === id)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user