From 8e0fbd18dea334eddff8158e3e7adf285fe5b5c7 Mon Sep 17 00:00:00 2001 From: Qiu Yingbo Date: Thu, 9 Jun 2022 23:04:38 +0800 Subject: [PATCH] fix for `undefined` email if sth error, then resp[2[1].list always be a zero-length array `[]`. and a new user never break the dead-loop --- src/utils/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/config.js b/src/utils/config.js index b57702c..f65430c 100644 --- a/src/utils/config.js +++ b/src/utils/config.js @@ -135,7 +135,7 @@ export function makeConfig(jMail){ let email = resp[2][1].list[0] let data = email ? JSON.parse(email.bodyValues['1'].value) : null let state = resp.get('3').state - let blobId = email.blobId + let blobId = email ? email.blobId : null let raw = { ...data, configState: state,