From f1c2c5f0d9bc5e800b402f9ca3f6d344a2f5b299 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Mon, 17 Oct 2022 17:57:00 +0300 Subject: fix toasts close icon --- src/store/modules/Settings/SmtpStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/store') diff --git a/src/store/modules/Settings/SmtpStore.js b/src/store/modules/Settings/SmtpStore.js index 4312ecd9..a0240462 100644 --- a/src/store/modules/Settings/SmtpStore.js +++ b/src/store/modules/Settings/SmtpStore.js @@ -90,7 +90,7 @@ const SmtpStore = { return await api .post('/redfish/v1/Smtp/SendMail', payload) .then((res) => { - if (res.data.result === false) { + if (res?.data?.result === false) { return res.data; } }) -- cgit v1.2.3