Skip to content

Commit

Permalink
added removeMember mutation (#491)
Browse files Browse the repository at this point in the history
* added removeMember mutation

* changed mutation name
  • Loading branch information
kb-0311 authored Feb 22, 2023
1 parent 303b848 commit b485a14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/GraphQl/Mutations/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ export const REMOVE_ADMIN_MUTATION = gql`
// to Remove member from an organization

export const REMOVE_MEMBER_MUTATION = gql`
mutation RemoveAdmin($orgid: ID!, $userid: ID!) {
removeAdmin(data: { organizationId: $orgid, userId: $userid }) {
mutation RemoveMember($orgid: ID!, $userid: ID!) {
removeMember(data: { organizationId: $orgid, userId: $userid }) {
_id
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/OrgPeopleListCard/OrgPeopleListCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import styles from './OrgPeopleListCard.module.css';
import Row from 'react-bootstrap/Row';
import Col from 'react-bootstrap/Col';
import { useMutation } from '@apollo/client';
import { REMOVE_MEMBER_MUTATION } from 'GraphQl/Mutations/mutations';
import { toast } from 'react-toastify';
import { useTranslation } from 'react-i18next';
import { REMOVE_MEMBER_MUTATION } from 'GraphQl/Mutations/mutations';

interface OrgPeopleListCardProps {
key: string;
Expand Down

0 comments on commit b485a14

Please sign in to comment.