@selfcommunity/react-ui 0.7.9-alpha.12 → 0.7.9-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,7 +114,7 @@ function Groups(inProps) {
|
|
|
114
114
|
}
|
|
115
115
|
}, [contentAvailability, authUserId, prefetchedGroups.length]);
|
|
116
116
|
const handleSubscribe = (group) => {
|
|
117
|
-
if (general) {
|
|
117
|
+
if (!general) {
|
|
118
118
|
const newGroups = [...groups];
|
|
119
119
|
const _updated = newGroups.filter((g) => g.id !== group.id);
|
|
120
120
|
setGroups(_updated);
|
|
@@ -112,7 +112,7 @@ export default function Groups(inProps) {
|
|
|
112
112
|
}
|
|
113
113
|
}, [contentAvailability, authUserId, prefetchedGroups.length]);
|
|
114
114
|
const handleSubscribe = (group) => {
|
|
115
|
-
if (general) {
|
|
115
|
+
if (!general) {
|
|
116
116
|
const newGroups = [...groups];
|
|
117
117
|
const _updated = newGroups.filter((g) => g.id !== group.id);
|
|
118
118
|
setGroups(_updated);
|