Skip to content

Commit

Permalink
Another change for optional proj ID in bulk add GQL
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed May 17, 2024
1 parent 2b6c2b8 commit f35f8d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/lib/gql/gql-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ function createGqlClient(_gqlEndpoint?: string): Client {
cache.invalidate({__typename: 'User', id: args.input.userId});
},
bulkAddProjectMembers: (result, args: BulkAddProjectMembersMutationVariables, cache, _info) => {
cache.invalidate({__typename: 'Project', id: args.input.projectId});
if (args.input.projectId) {
cache.invalidate({__typename: 'Project', id: args.input.projectId});
}
},
leaveProject: (result, args: LeaveProjectMutationVariables, cache, _info) => {
cache.invalidate({__typename: 'Project', id: args.input.projectId});
Expand Down

0 comments on commit f35f8d0

Please sign in to comment.