From 31b281535c7bf00343a9a50f53813176cfa98784 Mon Sep 17 00:00:00 2001 From: jorg-vr Date: Thu, 2 Feb 2023 09:39:27 +0100 Subject: [PATCH] Perform less repository requests on the course page --- app/views/activities/_series_activities_table.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/activities/_series_activities_table.html.erb b/app/views/activities/_series_activities_table.html.erb index 6a07233dab..810c16d2ce 100644 --- a/app/views/activities/_series_activities_table.html.erb +++ b/app/views/activities/_series_activities_table.html.erb @@ -34,7 +34,7 @@ - <% local_assigns[:activities].each_with_index do |activity, index| %> + <% local_assigns[:activities].includes(:repository).each_with_index do |activity, index| %> <% if user_signed_in? %>