From 571854a60e78f5b6585e3b55174bcf210373f54e Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Thu, 11 Jan 2024 14:34:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AD=98=E5=82=A8?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E5=8F=98=E9=87=8F=E4=B8=8D=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/apps/surveyManage/service/surveyService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {