Skip to content

Commit

Permalink
Merge pull request #1172 from datacite/fix-hash-connection-nil-class-bug
Browse files Browse the repository at this point in the history
fix hash_connection#end_cursor nilclass error
  • Loading branch information
wendelfabianchinsamy authored Apr 10, 2024
2 parents 85c850c + 24e9e73 commit 568a10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/graphql/connections/hash_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def start_cursor

# @return [String] The cursor of the last item in {nodes}
def end_cursor
nodes.last && encode((after.to_i + 1).to_s)
nodes&.last && encode((after.to_i + 1).to_s)
end

# Return a cursor for this item.
Expand Down

0 comments on commit 568a10d

Please sign in to comment.