Skip to content

Commit

Permalink
Stop trying to remove from projectMembers query that doesn't exist an…
Browse files Browse the repository at this point in the history
…ymore
  • Loading branch information
CarsonF committed Oct 10, 2024
1 parent 6760343 commit 0c2e25b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/scenes/Projects/Members/Update/UpdateProjectMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ export const UpdateProjectMember = ({

const [deleteProjectMember] = useMutation(DeleteProjectMemberDocument, {
update: callAll(
removeItemFromList({
listId: 'projectMembers',
item: { id: projectMemberId },
}),
session?.id === userId
? // Invalidate whole project if removing self as that can have major authorization implications
onUpdateInvalidateObject(project)
Expand Down

0 comments on commit 0c2e25b

Please sign in to comment.