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 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 13:38:26 -04:00
parent a5a80aa93d
commit 114d44f6c0

View File

@@ -291,6 +291,7 @@ export default function QuestionBankView() {
start_time: 0,
end_time: 0,
});
setImagePreview(question.image_path || null);
setSheetOpen(true);
};