11870: minor updates
[arvados.git] / apps / workbench / app / views / repositories / _show_help.html.erb
index 0983d8738543404d665a1199cbb7164d9df45c2e..afc7e5484f288cb3005ae39dc133f367d99bf18b 100644 (file)
@@ -1,7 +1,7 @@
 <%
     filters = @filters + [["owner_uuid", "=", current_user.uuid]]
-    example = Repository.all.order("name ASC").limit(1).filter(filters).results.first
-    example = Repository.all.order("name ASC").limit(1).results.first if !example
+    example = Repository.all.order("name ASC").filter(filters).limit(1).results.first
+    example = Repository.all.order("name ASC").results.limit(1).first if !example
 %>
 
 <% if example %>