Skip to content

Commit 36fb106

Browse files
fix(core): return empty object if selected mail driver is unavailable
1 parent fdaf097 commit 36fb106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/core/js/src/admin/components/MailPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default class MailPage<CustomAttrs extends IPageAttrs = IPageAttrs> exten
9393
mailSettingItems(): ItemList<Mithril.Children> {
9494
const items = new ItemList<Mithril.Children>();
9595

96-
const fields = this.driverFields![this.setting('mail_driver')()];
96+
const fields = this.driverFields![this.setting('mail_driver')()] || {};
9797
const fieldKeys = Object.keys(fields);
9898

9999
if (this.status!.sending) {

0 commit comments

Comments
 (0)