Skip to content

Commit

Permalink
Fix when args user_id on person is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhallett committed Jun 15, 2021
1 parent d59d704 commit 73d5504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/types/person_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def citation_count
end

def response(**args)
user_id = args[:user_id] << object[:id]
user_id = args[:user_id].present? ? args[:user_id] << object[:id] : object[:id]

Doi.gql_query(
args[:query],
Expand Down

0 comments on commit 73d5504

Please sign in to comment.