Skip to content

Commit

Permalink
Fix can not read formComponent of undefined error on create event…
Browse files Browse the repository at this point in the history
… notification page. (#20755)
  • Loading branch information
linuspahl authored Oct 23, 2024
1 parent 2451b5a commit c5a6421
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class EventNotificationForm extends React.Component<EventNotificationFormProps,
const { isSubmitEnabled } = this.state;

const notificationPlugin = getNotificationPlugin(notification.config.type);
const notificationFormComponent = notificationPlugin.formComponent
const notificationFormComponent = notificationPlugin?.formComponent
? React.createElement(notificationPlugin.formComponent, {
config: notification.config,
onChange: this.handleConfigChange,
Expand Down

0 comments on commit c5a6421

Please sign in to comment.