Commit 444c8584 authored by http://jneen.net/'s avatar http://jneen.net/

use safe navigation on notification_setting

parent c2dd4239
...@@ -31,7 +31,7 @@ class NotificationRecipient ...@@ -31,7 +31,7 @@ class NotificationRecipient
@notification_level ||= @notification_level ||=
case raw_notification_level case raw_notification_level
when :custom when :custom
if @custom_action && notification_setting.event_enabled?(@custom_action) if @custom_action && notification_setting&.event_enabled?(@custom_action)
:watch :watch
else else
:custom :custom
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment