Skip to content

Commit

Permalink
Merge pull request #1663 from Falke-Design/fix/response_count_in_lists
Browse files Browse the repository at this point in the history
Wrong response count in lists causes showing "Next page"
  • Loading branch information
CastagnaIT authored Dec 31, 2023
2 parents 1b7dc6f + 72108bf commit 663376a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/lib/utils/api_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ def jgrapgh_len(data_dict):
"""
count = 0
for value in data_dict:
if data_dict[value].get('$type') == 'atom':
ref = _remove_nesting(data_dict[value])
if ref.get('$type') == 'atom':
break
count += 1
return count

0 comments on commit 663376a

Please sign in to comment.