fix(navbar): never fail request on broken navbar logic
This commit is contained in:
parent
b68b340d81
commit
79a1d9b99d
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ module NavBarProfileConcern
|
|||
|
||||
controller_instance = controller_class.new
|
||||
controller_instance.try(:nav_bar_profile)
|
||||
rescue StandardError => e # we don't want broken logic in nav bar profile to fail the request
|
||||
Sentry.capture_exception(e)
|
||||
|
||||
nil
|
||||
end
|
||||
|
||||
# Fallback for shared controllers from user account
|
||||
|
|
Loading…
Reference in a new issue