fix: remove unused filter
This commit is contained in:
parent
7fbea56bde
commit
672e97fc87
1 changed files with 0 additions and 8 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue