diff options
author | Stan Hu <stanhu@gmail.com> | 2017-07-13 21:43:44 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-07-13 21:43:44 -0700 |
commit | e6cd2353a4123af3183188b200233a32ea7adbdd (patch) | |
tree | c3584e0f9573cb2d0413d7db21f8b29eb3a2d3af | |
parent | 0e23d1a74ff6283076e9a1d74eccfc5ba6419fd8 (diff) | |
download | gitlab-ce-e6cd2353a4123af3183188b200233a32ea7adbdd.tar.gz |
Handle nil BroadcastMessage.current in the views
-rw-r--r-- | app/views/layouts/_broadcast.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_broadcast.html.haml b/app/views/layouts/_broadcast.html.haml index bcd2f03e83c..e2dbdcbb939 100644 --- a/app/views/layouts/_broadcast.html.haml +++ b/app/views/layouts/_broadcast.html.haml @@ -1,2 +1,2 @@ -- BroadcastMessage.current.each do |message| +- BroadcastMessage.current&.each do |message| = broadcast_message(message) |