From cbfe1465524a8fef2135216a04fa875a73c8365f Mon Sep 17 00:00:00 2001 From: -akku- <151517253+akku1139@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:54:37 +0900 Subject: [PATCH] https://qiita.com/wagase/items/e9f1fabef4a17f2937c4 --- src/components/Articles.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Articles.astro b/src/components/Articles.astro index 4a7da4f..7ad188e 100644 --- a/src/components/Articles.astro +++ b/src/components/Articles.astro @@ -66,7 +66,7 @@ const qiitaData: QiitaArticle[] = await ofetch("https://qiita.com/ return JSON.parse(res).map((article) => {return {site: "qiita", ...article}}); }, }); -const combinedData: (ZennArticle | NoteArticle | QiitaArticle)[] = zennData + noteData + qiitaData; +const combinedData: (ZennArticle | NoteArticle | QiitaArticle)[] = [...zennData, ...noteData, ...qiitaData]; const compareDates = (a: { published_at: string } | { publish_at: string } | { created_at: string}, b: { published_at: string } | { publish_at: string } | { created_at: string}, ): number => {