summaryrefslogtreecommitdiff
path: root/src/store/modules
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-10-18 10:01:32 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-10-18 10:01:32 +0300
commitdbcdb2075fecc350c6c9f97735b2cdd9105ada6a (patch)
tree720b329082555d6f2a643a2c98e22242a8a6043c /src/store/modules
parentf1c2c5f0d9bc5e800b402f9ca3f6d344a2f5b299 (diff)
downloadwebui-vue-dbcdb2075fecc350c6c9f97735b2cdd9105ada6a.tar.xz
fix smtp message
Diffstat (limited to 'src/store/modules')
-rw-r--r--src/store/modules/Settings/SmtpStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/store/modules/Settings/SmtpStore.js b/src/store/modules/Settings/SmtpStore.js
index a0240462..cf508029 100644
--- a/src/store/modules/Settings/SmtpStore.js
+++ b/src/store/modules/Settings/SmtpStore.js
@@ -90,8 +90,8 @@ const SmtpStore = {
return await api
.post('/redfish/v1/Smtp/SendMail', payload)
.then((res) => {
- if (res?.data?.result === false) {
- return res.data;
+ if (res.data) {
+ return res;
}
})
.catch((error) => console.log(error));