Commit 24c2aa39 authored by James Lopez's avatar James Lopez

fix blank state error

parent 98773ef9
...@@ -12,7 +12,7 @@ module Gitlab ...@@ -12,7 +12,7 @@ module Gitlab
end end
def fetch def fetch
update_author! if event_result.first['author_id'] update_author!
event_result.map do |event| event_result.map do |event|
serialize(event) if has_permission?(event['id']) serialize(event) if has_permission?(event['id'])
...@@ -28,6 +28,8 @@ module Gitlab ...@@ -28,6 +28,8 @@ module Gitlab
private private
def update_author! def update_author!
return unless event_result.any? && event_result.first['author_id']
AuthorUpdater.update!(event_result) AuthorUpdater.update!(event_result)
end end
......
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