From 00329eaee0d4b90efa3a28db2232a33f7266e344 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:56:56 +0100 Subject: [PATCH] fix: return empty object if selected mail driver is unavailable (#4113) --- framework/core/js/src/admin/components/MailPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/admin/components/MailPage.tsx b/framework/core/js/src/admin/components/MailPage.tsx index 3f7221aad2..a3cc1797ae 100644 --- a/framework/core/js/src/admin/components/MailPage.tsx +++ b/framework/core/js/src/admin/components/MailPage.tsx @@ -98,7 +98,7 @@ export default class MailPage exten contentItems(): ItemList { const items = new ItemList(); - const fields = this.driverFields![this.setting('mail_driver')()]; + const fields = this.driverFields![this.setting('mail_driver')()] || {}; const fieldKeys = Object.keys(fields); items.add(