Skip to content

Commit

Permalink
fix: return empty object if selected mail driver is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Nov 15, 2024
1 parent 8eb56b1 commit 7f33026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/js/src/admin/components/MailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class MailPage<CustomAttrs extends IPageAttrs = IPageAttrs> exten

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

items.add(
Expand Down

0 comments on commit 7f33026

Please sign in to comment.