From 114d44f6c0d5d19e8d407e2379c1235958bd86b8 Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Fri, 3 Apr 2026 13:38:26 -0400 Subject: [PATCH] Show existing image preview when editing an image question Set imagePreview to the question's image_path in handleEdit so the current image displays in the Sheet form. Co-Authored-By: Claude Opus 4.6 --- .../frontend/src/components/questionbank/QuestionBankView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/frontend/src/components/questionbank/QuestionBankView.tsx b/frontend/frontend/src/components/questionbank/QuestionBankView.tsx index aa47825..5d145d2 100644 --- a/frontend/frontend/src/components/questionbank/QuestionBankView.tsx +++ b/frontend/frontend/src/components/questionbank/QuestionBankView.tsx @@ -291,6 +291,7 @@ export default function QuestionBankView() { start_time: 0, end_time: 0, }); + setImagePreview(question.image_path || null); setSheetOpen(true); };