chore: checkpoint admin editor and perf work
This commit is contained in:
@@ -19,9 +19,14 @@ const selectedSearch = url.searchParams.get('search') || '';
|
||||
const { t } = getI18n(Astro);
|
||||
|
||||
try {
|
||||
allPosts = selectedSearch ? await api.searchPosts(selectedSearch) : await api.getPosts();
|
||||
allCategories = await api.getCategories();
|
||||
const rawTags = await api.getTags();
|
||||
const [posts, categories, rawTags] = await Promise.all([
|
||||
selectedSearch ? api.searchPosts(selectedSearch) : api.getPosts(),
|
||||
api.getCategories(),
|
||||
api.getTags(),
|
||||
]);
|
||||
|
||||
allPosts = posts;
|
||||
allCategories = categories;
|
||||
const seenTagIds = new Set<string>();
|
||||
allTags = rawTags.filter(tag => {
|
||||
const key = `${tag.slug}:${tag.name}`.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user