diff --git a/src/components/project/home-block.vue b/src/components/project/home-block.vue index 501643009..8a333b2b3 100644 --- a/src/components/project/home-block.vue +++ b/src/components/project/home-block.vue @@ -66,7 +66,7 @@ export default { }, computed: { visibleForms() { - const sortedForms = [...this.project.formList]; + const sortedForms = this.project.formList.filter((f) => f.state !== 'closed'); sortedForms.sort(this.sortFunc); return this.expanded ? sortedForms @@ -76,7 +76,7 @@ export default { return this.numForms > this.maxForms; }, numForms() { - return this.project.formList.length; + return this.project.formList.filter((f) => f.state !== 'closed').length; } }, methods: { diff --git a/src/components/project/list.vue b/src/components/project/list.vue index 96ba3d25c..179129455 100644 --- a/src/components/project/list.vue +++ b/src/components/project/list.vue @@ -24,7 +24,8 @@ except according to the terms contained in the LICENSE file.