Merge branch 'fix-tab-counter' into 'develop'
Fix counter in Group tabs See merge request soapbox-pub/soapbox!2467
This commit is contained in:
commit
3bbaa02054
|
@ -76,12 +76,6 @@ const GroupPage: React.FC<IGroupPage> = ({ params, children }) => {
|
||||||
const isBlocked = group?.relationship?.blocked_by;
|
const isBlocked = group?.relationship?.blocked_by;
|
||||||
const isPrivate = group?.locked;
|
const isPrivate = group?.locked;
|
||||||
|
|
||||||
// if ((group as any) === false) {
|
|
||||||
// return (
|
|
||||||
// <MissingIndicator />
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
const tabItems = useMemo(() => {
|
const tabItems = useMemo(() => {
|
||||||
const items = [];
|
const items = [];
|
||||||
items.push({
|
items.push({
|
||||||
|
@ -111,7 +105,7 @@ const GroupPage: React.FC<IGroupPage> = ({ params, children }) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
}, [features.groupsTags]);
|
}, [features.groupsTags, pending.length]);
|
||||||
|
|
||||||
const renderChildren = () => {
|
const renderChildren = () => {
|
||||||
if (!isMember && isPrivate) {
|
if (!isMember && isPrivate) {
|
||||||
|
|
Loading…
Reference in New Issue