From 125f9e257f75decafa1f17286356cae35b0031a0 Mon Sep 17 00:00:00 2001 From: Ubinquitous Date: Mon, 15 Apr 2024 14:54:55 +0900 Subject: [PATCH] =?UTF-8?q?rollback(history):=20=EB=B0=B1=EC=97=94?= =?UTF-8?q?=EB=93=9C=20=EB=B2=84=EA=B7=B8=20=EC=B0=A9=EC=98=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/history/[title]/detail/[id]/HistoryDetail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/history/[title]/detail/[id]/HistoryDetail.tsx b/app/history/[title]/detail/[id]/HistoryDetail.tsx index ed0f72fd..5db56740 100644 --- a/app/history/[title]/detail/[id]/HistoryDetail.tsx +++ b/app/history/[title]/detail/[id]/HistoryDetail.tsx @@ -13,7 +13,7 @@ interface HistoryType { } const HistoryDetail: FC<{ id: number; title: string }> = ({ id, title }) => { - const { data: history } = useSuspenseQuery(historyQuery.detail({ id, title })); + const { data: history } = useSuspenseQuery(historyQuery.detail({ id: id - 1, title })); return (