diff --git a/server/src/apps/surveyManage/service/surveyService.ts b/server/src/apps/surveyManage/service/surveyService.ts index 2a40f61c..04311702 100644 --- a/server/src/apps/surveyManage/service/surveyService.ts +++ b/server/src/apps/surveyManage/service/surveyService.ts @@ -241,7 +241,7 @@ class SurveyService { const listBody = surveySubmitDataList.map(submitedData => { const data = submitedData.data; - const secretKeys = submitedData.secretKeys; + const secretKeys = submitedData.secretKeys || []; const dataKeys = Object.keys(data); for (const itemKey of dataKeys) {