Showing
1 changed file
with
2 additions
and
1 deletions
@@ -28,8 +28,9 @@ const getClientData = (type, encryptedUid, imgSize) => { | @@ -28,8 +28,9 @@ const getClientData = (type, encryptedUid, imgSize) => { | ||
28 | return Promise.all(apiMethod) | 28 | return Promise.all(apiMethod) |
29 | .then(res => { | 29 | .then(res => { |
30 | let history = res[1].data; | 30 | let history = res[1].data; |
31 | - let hasHistory = history.length > 0; | 31 | + let hasHistory = history && history.length > 0 || false; |
32 | let csSetting = res[0].data.config; | 32 | let csSetting = res[0].data.config; |
33 | + | ||
33 | csSetting.windowLogo = csSetting.windowLogo.replace(regExp, logoSize); | 34 | csSetting.windowLogo = csSetting.windowLogo.replace(regExp, logoSize); |
34 | csSetting.qrCode = csSetting.qrCode.replace(regExp, qcSize); | 35 | csSetting.qrCode = csSetting.qrCode.replace(regExp, qcSize); |
35 | csSetting.pcAdImg = csSetting.pcAdImg.replace(regExp, advSize); | 36 | csSetting.pcAdImg = csSetting.pcAdImg.replace(regExp, advSize); |
-
Please register or login to post a comment