Skip to content

Commit 53f1b98

Browse files
authored
fix(fe): fix build error (#20)
fix: fix redirect url
1 parent 71bea0a commit 53f1b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/client/src/features/session/session.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export async function loadSessionData(options: LoadSessionOptions) {
8080
// 질문 목록에 questionId가 없으면 리다이렉트
8181
const found = response.questions.some((q) => q.questionId === Number(questionId));
8282
if (!found) {
83-
throw redirect({ to: `/session/${sessionId}` });
83+
throw redirect({ to: `/session/$sessionId`, params: { sessionId } });
8484
}
8585

8686
// fromDetailBehavior 옵션이 true면, 세부 로직 추가

0 commit comments

Comments
 (0)