dh_demo

DreamHanks demo project
git clone git://git.lair.cx/dh_demo
Log | Files | Refs | README

commit a268d02c119d67cd04ae7feea93f37201dd161e7
parent ed7888660e9f476cf95b5a42717066829377036d
Author: Yongbin Kim <iam@yongbin.kim>
Date:   Sun, 29 Jan 2023 14:02:13 +0900

fix: Thread 페이지에서 이동할 때 페이지 새로고침되던 문제 수정
Signed-off-by: Yongbin Kim <iam@yongbin.kim>

Diffstat:
Mcomponents/threads/ThreadList.tsx | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/components/threads/ThreadList.tsx b/components/threads/ThreadList.tsx @@ -18,12 +18,8 @@ export default function ThreadList (props: ThreadListProps) { const handleThreadClicked = (threadId: number) => { return (e: MouseEvent<HTMLElement>) => { e.preventDefault() - router.push( - '/threads/[...path]', - `/threads/${threadId}`, - ).catch((e) => { - console.error(e) - }) + router.push(`/threads/${threadId}`,) + .catch(console.error) } }