Skip to content

Commit

Permalink
chore: fix limit after refactoring samples table
Browse files Browse the repository at this point in the history
  • Loading branch information
ericenns committed Dec 11, 2024
1 parent 3c8740a commit c673db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/groups/samples_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SamplesController < Groups::ApplicationController

def index
@timestamp = DateTime.current
@pagy, @samples = pagy(@query.results)
@pagy, @samples = pagy(@query.results, limit: params[:limit] || 20)
@has_samples = authorized_samples.count.positive?
end

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/projects/samples_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class SamplesController < Projects::ApplicationController # rubocop:disable Metr

def index
@timestamp = DateTime.current
@pagy, @samples = pagy(@query.results)
@pagy, @samples = pagy(@query.results, limit: params[:limit] || 20)
@has_samples = @project.samples.size.positive?
end

Expand Down

0 comments on commit c673db5

Please sign in to comment.