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]}