Skip to content
Snippets Groups Projects
Commit d129074e authored by Gyan Gupta's avatar Gyan Gupta
Browse files

Fix pagination issue

parent c3ffd813
No related branches found
No related tags found
1 merge request!363Fixes for pagination issue
Pipeline #19398 passed
......@@ -30,7 +30,7 @@ module Hyrax
experiment_file_sets = (subject_query.present? || session_query.present? || modality_query.present?) ? [] : experiment.file_sets_fast_load_metadata
child_subjects = complex_subjects.sort_by_title(experiment.source.first)
members = Kaminari.paginate_array(experiment_file_sets + child_subjects).page(options[:page] || 1).per(options[:per_pag])
members = Kaminari.paginate_array(experiment_file_sets + child_subjects).page(options[:page] || 1).per(options[:per_page] || 10)
# get children
all_children['experiment'][id] = gather_children(members)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment