Skip to content

Commit

Permalink
chore: preserve limit in sort urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ericenns committed Dec 11, 2024
1 parent d44a317 commit 21c19bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/samples/table_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ def sort_url(field)
end

if @namespace.type == 'Group'
group_samples_url(@namespace, q: { sort: sort_string })
group_samples_url(@namespace, q: { sort: sort_string }, limit: @pagy.limit)
else
namespace_project_samples_url(@namespace.parent, @namespace.project, q: { sort: sort_string })
namespace_project_samples_url(@namespace.parent, @namespace.project, q: { sort: sort_string },
limit: @pagy.limit)
end
end

Expand Down

0 comments on commit 21c19bd

Please sign in to comment.