3140: address tab content mangling issue when infinte scrolling is applied to tabs...
[arvados.git] / apps / workbench / app / views / projects / _show_data_collections.html.erb
index c632324055a2df8f07217f9efea734e7df68c307..9198c653dc2c06bd642d05214da022c3c7ea46f8 100644 (file)
   <% end %>
 <% end %>
 
-<%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: @objects_and_names, data_kind: ['arvados#collection']} %>
+<% 
+  filters = [['uuid', 'is_a', "arvados#collection"]]
+  @objects = @object.contents({limit: 50, include_linked: true, :filters => filters})
+  objects_and_names = get_objects_and_names @objects
+  page_offset = next_page_offset @objects
+%>
+
+<%= render partial: 'show_tab_contents', locals: {project: @object, objects_and_names: objects_and_names, filters: filters, page_offset: page_offset} %>