diff --git a/ui/src/shared/components/Notifications.js b/ui/src/shared/components/Notifications.js index 3ab2b3bfa..7111e9f30 100644 --- a/ui/src/shared/components/Notifications.js +++ b/ui/src/shared/components/Notifications.js @@ -41,15 +41,15 @@ class Notifications extends Component { ) } - renderDismiss(type) { - const {dismissNotification} = this.props + handleDismiss = type => () => this.props.dismissNotification(type) + renderDismiss(type) { return (