diff --git a/app/views/reports/elements/_my_module_repository_element.html.erb b/app/views/reports/elements/_my_module_repository_element.html.erb index 09b14e5a6..590b930ee 100644 --- a/app/views/reports/elements/_my_module_repository_element.html.erb +++ b/app/views/reports/elements/_my_module_repository_element.html.erb @@ -5,7 +5,7 @@ <% repository = assigned_repository_or_snapshot(my_module, element_id, repository, repository_snapshot) %> <% order ||= @order %> <% timestamp = Time.current + 1.year - 1.days %> -<% rows_json = my_module.repository_json_hot(repository, order) %> +<% rows_json = repository.present? ? my_module.repository_json_hot(repository, order) : {} %>