Skip to content

Commit 8a5c089

Browse files
committed
Fixed: pending criteria for projects
1 parent ead96e7 commit 8a5c089

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pages/blog.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ const projectsCreatedData = computed(() => {
132132
return projectsSortedData(projectsAll, projectsPostsLatest, post => new Date(post.model.created))
133133
})
134134
135-
const projectsPending = computed(() =>
136-
projectsLatestData.value.length === 0
137-
|| projectsCreatedData.value.length === 0)
135+
const projectsPending = computed(() => projectsAllQuery.status.value === 'pending')
138136
139137
useSeoMetaHelper({
140138
title: 'Blog',

pages/projects/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ const projectsCreatedData = computed(() => {
9292
})
9393
9494
const projectsPending = computed(() =>
95-
projectsLatestData.value.length === 0
96-
|| projectsCreatedData.value.length === 0)
95+
projectsPostsLatestQuery.status.value === 'pending'
96+
|| projectsPostsCreatedQuery.status.value === 'pending')
9797
9898
useSeoMetaHelper({
9999
title: 'Blog',

0 commit comments

Comments
 (0)