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 => {