X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5cfa1aab53ba24d800d2dfa9ac1d88477063ab7f..8deda2012ea7e25610f2cbd0a271e131d9364503:/apps/workbench/app/controllers/application_controller.rb diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index 71a7c766c7..3270cfb376 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -164,6 +164,7 @@ class ApplicationController < ActionController::Base def find_objects_for_index @objects ||= model_class @objects = @objects.filter(@filters).limit(@limit).offset(@offset) + @objects.fetch_multiple_pages(false) end def render_index @@ -172,9 +173,9 @@ class ApplicationController < ActionController::Base if params[:partial] @next_page_href = next_page_href(partial: params[:partial], filters: @filters.to_json) render json: { - content: render_to_string(partial: "show_#{params[:partial]}", formats: [:html]), - next_page_href: @next_page_href - + content: render_to_string(partial: "show_#{params[:partial]}", + formats: [:html]), + next_page_href: @next_page_href } else render json: @objects