From 7f3302646f2fbc630a5fe021410ac74285663f6f Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Fri, 15 Nov 2024 11:30:44 +0100 Subject: [PATCH] fix: return empty object if selected mail driver is unavailable --- 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(