Fix unfollowing group

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-11-25 17:19:29 +01:00
parent d2c78c5f17
commit 635c35e009
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 2 additions and 2 deletions

View File

@ -662,7 +662,7 @@ import EmptyContent from "../../components/Utils/EmptyContent.vue";
import { Paginate } from "@/types/paginate";
import { IEvent } from "@/types/event.model";
import { IPost } from "@/types/post.model";
import { FOLLOW_GROUP, UPDATE_GROUP_FOLLOW } from "@/graphql/followers";
import { FOLLOW_GROUP, UNFOLLOW_GROUP, UPDATE_GROUP_FOLLOW } from "@/graphql/followers";
import { useAnonymousReportsConfig } from "../../composition/apollo/config";
import { computed, defineAsyncComponent, inject, ref, watch } from "vue";
import { useCurrentActorClient } from "@/composition/apollo/actor";
@ -891,7 +891,7 @@ const followGroup = async (): Promise<void> => {
};
const { mutate: unfollowGroupMutation, onError: onUnfollowGroupError } =
useMutation(FOLLOW_GROUP, () => ({
useMutation(UNFOLLOW_GROUP, () => ({
refetchQueries: [
{
query: PERSON_STATUS_GROUP,