X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cbba74fcd57b7b81337d44c2e663ba317e6538de..a714babda599431fd509dff6dee87ab30a1793eb:/apps/workbench/app/controllers/work_unit_templates_controller.rb?ds=sidebyside diff --git a/apps/workbench/app/controllers/work_unit_templates_controller.rb b/apps/workbench/app/controllers/work_unit_templates_controller.rb index 6b5f114a66..fe53ac403c 100644 --- a/apps/workbench/app/controllers/work_unit_templates_controller.rb +++ b/apps/workbench/app/controllers/work_unit_templates_controller.rb @@ -6,8 +6,10 @@ class WorkUnitTemplatesController < ApplicationController @filters = @filters || [] # get next page of pipeline_templates - filters = @filters + [["uuid", "is_a", ["arvados#pipelineTemplate"]]] - pipelines = PipelineTemplate.limit(@limit).order(["created_at desc"]).filter(filters) + if PipelineTemplate.api_exists?(:index) + filters = @filters + [["uuid", "is_a", ["arvados#pipelineTemplate"]]] + pipelines = PipelineTemplate.limit(@limit).order(["created_at desc"]).filter(filters) + end # get next page of workflows filters = @filters + [["uuid", "is_a", ["arvados#workflow"]]]