From 48de08da399fb7e055976f111aed918865e503eb Mon Sep 17 00:00:00 2001 From: hyungi Date: Sun, 7 Jun 2026 15:38:48 +0900 Subject: [PATCH] =?UTF-8?q?fix(study):=20=EA=B2=80=EC=88=98=ED=95=A8=20eac?= =?UTF-8?q?h=5Fkey=5Fduplicate=20=ED=81=AC=EB=9E=98=EC=8B=9C=20=E2=80=94?= =?UTF-8?q?=20=EC=9E=90=EB=A3=8C(=EC=88=98=EB=8F=99)=20=EA=B7=B8=EB=A3=B9?= =?UTF-8?q?=20null=20=ED=82=A4=20=EC=A4=91=EB=B3=B5=20=ED=95=B4=EC=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit manual 카드 그룹은 source_question_id=null 이라 자료가 2개+ 면 {#each ... (g.source_question_id)} 키 중복 → Svelte each_key_duplicate 크래시. 키를 (source_question_id ?? question_text) 고유값으로 변경. 추가로 자료 그룹은 approve-batch 가 source_question_id:int 필수라 422 → 일괄승인 버튼을 question 그룹에만 노출. 개별 승인/수정/삭제는 cardId 기반이라 자료도 정상. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/src/routes/study/cards-review/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/study/cards-review/+page.svelte b/frontend/src/routes/study/cards-review/+page.svelte index 99565cb..55a8aaf 100644 --- a/frontend/src/routes/study/cards-review/+page.svelte +++ b/frontend/src/routes/study/cards-review/+page.svelte @@ -152,7 +152,7 @@ {:else}
- {#each shownGroups as g (g.source_question_id)} + {#each shownGroups as g (g.source_question_id ?? g.question_text)}
@@ -162,7 +162,7 @@
{g.question_text}
{#if g.correct_choice}
사용자 정답: {g.correct_choice}번
{/if}
- {#if g.cards.length > 1} + {#if g.cards.length > 1 && g.source_question_id != null} {/if}