mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-13 11:46:17 +09:00
update dependencies and similarItem.ts
This commit is contained in:
@@ -14,13 +14,12 @@ const similerItems = (currentItem: any, allItems: any, slug: string) => {
|
||||
}
|
||||
|
||||
// filter by categories
|
||||
const filterByCategories = allItems.filter(
|
||||
(item: { data: { categories: string } }) =>
|
||||
categories.find((category) => item.data.categories.includes(category))
|
||||
const filterByCategories = allItems.filter((item: any) =>
|
||||
categories.find((category) => item.data.categories.includes(category))
|
||||
);
|
||||
|
||||
// filter by tags
|
||||
const filterByTags = allItems.filter((item: { data: { tags: string } }) =>
|
||||
const filterByTags = allItems.filter((item: any) =>
|
||||
tags.find((tag) => item.data.tags.includes(tag))
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user