Don't show spinner if pinned items is undefined or zero
This commit is contained in:
parent
e44fc8ae13
commit
2cda3a4d4f
|
@ -192,7 +192,9 @@ function GroupOverviewPinned(props: {
|
||||||
updateGroup(group, { pinnedItems: newPinned })
|
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
|
<PinnedItems
|
||||||
posts={posts}
|
posts={posts}
|
||||||
group={group}
|
group={group}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user