Skip to content

Commit 8b80864

Browse files
committed
fix inaccurate tag counts on the search page when no query is entered
1 parent 33b4277 commit 8b80864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/searchFilters.json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const GET = async () => {
77
.getPeopleByLang("en")
88
.filter((person) => person.totalPostCount > 0);
99

10-
const posts = api.getAllPosts();
10+
const posts = api.getPostsByLang("en");
1111

1212
const tags = Object.entries(tagsObj).map(([tag, value]) => {
1313
return {

0 commit comments

Comments
 (0)