update packages

This commit is contained in:
somrat sorkar
2023-08-19 09:05:26 +06:00
parent de8674c8a3
commit 77c166f41b
3 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import { getCollection } from "astro:content";
export const getSinglePage = async (collection: any) => {
const allPage = await getCollection(collection);
const removeIndex = allPage.filter((data) => data.id.match(/^(?!-)/));
const removeDrafts = removeIndex.filter((data) => !data.data.draft);
const removeIndex = allPage.filter((data: any) => data.id.match(/^(?!-)/));
const removeDrafts = removeIndex.filter((data: any) => !data.data.draft);
return removeDrafts;
};
---