summaryrefslogtreecommitdiff
path: root/src/app/article/_components
diff options
context:
space:
mode:
authorFushihara <1039534+fushihara@users.noreply.github.com>2024-09-25 21:21:07 +0900
committerFushihara <1039534+fushihara@users.noreply.github.com>2024-09-25 21:21:07 +0900
commit914d46215fd955bc9045909d6e42bfb2f9a99331 (patch)
treeccba56f02391527a389c84bc0cc70644a9ec088e /src/app/article/_components
parent4ccee1438e3c341075fdcf1d62e6900eb29d1908 (diff)
記事データの持ち方を修正
ビルド時に1ページづつインスタンスが破棄されると思いこんでいて毎回ファイルの読み込みからやり直していた。
Diffstat (limited to 'src/app/article/_components')
-rw-r--r--src/app/article/_components/articleListElement.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/article/_components/articleListElement.tsx b/src/app/article/_components/articleListElement.tsx
index 0fe3d70..5437c04 100644
--- a/src/app/article/_components/articleListElement.tsx
+++ b/src/app/article/_components/articleListElement.tsx
@@ -5,7 +5,7 @@ dateformat.i18n.dayNames = [
'日', '月', '火', '水', '木', '金', '土',
'日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'
];
-type DisplayData = Awaited<ReturnType<ArticleLoader["loadData"]>>[number];
+type DisplayData = Awaited<ReturnType<ArticleLoader["loadData"]>>["articles"][number];
export function ArticleListElement(displayData: DisplayData[]) {
return (
<table className="w-full">