From 7cedbc1156e73f23a1b34621b2fd4a92401b5853 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexa=20Valentov=C3=A1?= <git@imaniti.org>
Date: Fri, 4 Oct 2024 01:47:44 +0200
Subject: [PATCH] fix UI

---
 shared/templatetags/people_filters.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shared/templatetags/people_filters.py b/shared/templatetags/people_filters.py
index b563c35f..8dc61e46 100644
--- a/shared/templatetags/people_filters.py
+++ b/shared/templatetags/people_filters.py
@@ -8,7 +8,7 @@ def is_first_people_type(content, forloop):
     first_people_type_position = None
 
     for position, item in enumerate(content):
-        if item.block_type in ("octopus_group", "people_group", "team_group"):
+        if item.block_type in ("octopus_group", "octopus_team", "people_group", "team_group"):
             if first_people_type_position is None:
                 first_people_type_position = position
                 break
@@ -27,7 +27,7 @@ def has_one_people_type(content):
     people_type_count = 0
 
     for item in content:
-        if item.block_type in ("octopus_group", "people_group", "team_group"):
+        if item.block_type in ("octopus_group", "octopus_team", "people_group", "team_group"):
             people_type_count += 1
 
             if people_type_count > 1:
-- 
GitLab