From 9e6d107e6e82c0becc522493d3b9c911294aeea5 Mon Sep 17 00:00:00 2001 From: unknown <2391580279@qq.com> Date: Mon, 14 Oct 2024 21:14:50 +0800 Subject: [PATCH] fix: #462 --- src/views/Challenge/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Challenge/index.js b/src/views/Challenge/index.js index 16021875..6313cda5 100644 --- a/src/views/Challenge/index.js +++ b/src/views/Challenge/index.js @@ -465,7 +465,7 @@ export default function Challenge(params) { label={question.title} question={question} value={changeAnswer} - defaultValue={detail.answer ? detail.answer[i] : null} + defaultValue={detail?.answer ? detail.answer[i] : null} defaultFileList={fileList} isPreview={isPreview} // answer={realAnswer[i]}