Skip to content

Commit

Permalink
Merge pull request #1174 from datacite/fix-hash-connection-has-next-p…
Browse files Browse the repository at this point in the history
…age-nil-class-bug

fix hash_connection#has_next_page nilclass error
  • Loading branch information
wendelfabianchinsamy authored Apr 10, 2024
2 parents 568a10d + 8414a4b commit 2a84998
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 @@ -121,7 +121,7 @@ def page_info

# @return [Boolean] True if there are more items after this page
def has_next_page
nodes.length < total_count # && !(nodes.length < first.to_i)
nodes&.length < total_count # && !(nodes.length < first.to_i)
end

# @return [Boolean] True if there were items before these items
Expand Down

0 comments on commit 2a84998

Please sign in to comment.