fix: remove unused filter

This commit is contained in:
Devin Haska 2024-10-03 22:53:40 -07:00
parent 7fbea56bde
commit 672e97fc87

View file

@ -29,14 +29,6 @@ export const organizeByDate = (collection) => {
return collectionByDate;
};
const allTags = (collection, ignore = []) => {
const tagSet = new Set(collection.flatMap((item) => item.data.tags));
ignore.forEach((tag) => tagSet.delete(tag));
return [...tagSet];
};
export const allTagCounts = (collection, ignore = ["post"]) => {
if (!collection.length) {
throw new Error("Invalid collection, no items");