From c41f553312538585f915d4e08eec28987c0127d9 Mon Sep 17 00:00:00 2001 From: Jannis Hajda Date: Mon, 30 Jan 2023 20:28:50 +0100 Subject: [PATCH] fix: show managed items for each group --- app/views/groups/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/groups/index.html.erb b/app/views/groups/index.html.erb index 151e649e..7e179c5d 100644 --- a/app/views/groups/index.html.erb +++ b/app/views/groups/index.html.erb @@ -16,12 +16,12 @@ <% end %>
- <% group.viewable_items.each do |item| %> + <% group.managed_items.each do |item| %>
<%= render "items/item_card", item: item %>
<% end %> - <% if group.viewable_items.empty? %> + <% if group.managed_items.empty? %>
<%= t(:group_no_items) %>