Merge branch 'fix-tab-counter' into 'develop'

Fix counter in Group tabs

See merge request soapbox-pub/soapbox!2467
This commit is contained in:
Chewbacca 2023-04-24 16:32:14 +00:00
commit 3bbaa02054

View file

@ -76,12 +76,6 @@ const GroupPage: React.FC<IGroupPage> = ({ params, children }) => {
const isBlocked = group?.relationship?.blocked_by;
const isPrivate = group?.locked;
// if ((group as any) === false) {
// return (
// <MissingIndicator />
// );
// }
const tabItems = useMemo(() => {
const items = [];
items.push({
@ -111,7 +105,7 @@ const GroupPage: React.FC<IGroupPage> = ({ params, children }) => {
});
return items;
}, [features.groupsTags]);
}, [features.groupsTags, pending.length]);
const renderChildren = () => {
if (!isMember && isPrivate) {