From 2cda3a4d4f49b4f63f24d22a9210d809f06c0d88 Mon Sep 17 00:00:00 2001 From: Pico2x Date: Wed, 12 Oct 2022 18:12:32 +0100 Subject: [PATCH] Don't show spinner if pinned items is undefined or zero --- web/components/groups/group-overview.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/groups/group-overview.tsx b/web/components/groups/group-overview.tsx index 16fda8d1..4a3b5802 100644 --- a/web/components/groups/group-overview.tsx +++ b/web/components/groups/group-overview.tsx @@ -192,7 +192,9 @@ function GroupOverviewPinned(props: { updateGroup(group, { pinnedItems: newPinned }) } - return isEditable || (group.pinnedItems && group.pinnedItems.length > 0) ? ( + if (!group.pinnedItems || group.pinnedItems.length == 0) return <> + + return isEditable || (group.pinnedItems && group?.pinnedItems.length > 0) ? (