This commit is contained in:
github-actions[bot] 2022-10-12 17:12:56 +00:00 committed by GitHub
commit a76ff58201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) ? (
<PinnedItems
posts={posts}
group={group}