Skip to content

Commit 00329ea

Browse files
fix: return empty object if selected mail driver is unavailable (#4113)
1 parent 6c89f81 commit 00329ea

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
@@ -98,7 +98,7 @@ export default class MailPage<CustomAttrs extends IPageAttrs = IPageAttrs> exten
9898

9999
contentItems(): ItemList<Mithril.Children> {
100100
const items = new ItemList<Mithril.Children>();
101-
const fields = this.driverFields![this.setting('mail_driver')()];
101+
const fields = this.driverFields![this.setting('mail_driver')()] || {};
102102
const fieldKeys = Object.keys(fields);
103103

104104
items.add(

0 commit comments

Comments
 (0)