Skip to content

Commit

Permalink
Merge pull request #1000 from CruGlobal/remove-duplicate-operation
Browse files Browse the repository at this point in the history
[no-Jira] Remove duplicate GraphQL operation
  • Loading branch information
canac authored Aug 15, 2024
2 parents 103d35e + 33da2cf commit 02d6e2f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { makeStyles } from 'tss-react/mui';
import { SetContactFocus } from 'pages/accountLists/[accountListId]/tools/useToolsHelper';
import { DynamicAddAddressModal } from 'src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/AddAddressModal/DynamicAddAddressModal';
import { DynamicEditContactAddressModal } from 'src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/DynamicEditContactAddressModal';
import { useUpdateContactAddressMutation } from 'src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/EditContactAddress.generated';
import { Confirmation } from 'src/components/common/Modal/Confirmation/Confirmation';
import theme from '../../../theme';
import NoData from '../NoData';
Expand All @@ -28,7 +29,6 @@ import {
InvalidAddressesDocument,
InvalidAddressesQuery,
useInvalidAddressesQuery,
useUpdateContactAddressMutation,
} from './GetInvalidAddresses.generated';

export type HandleSingleConfirmProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,3 @@ fragment ContactAddress on Address {
createdAt
historic
}

mutation UpdateContactAddress(
$accountListId: ID!
$attributes: AddressUpdateInput!
) {
updateAddress(
input: { accountListId: $accountListId, attributes: $attributes }
) {
address {
city
country
historic
id
location
metroArea
postalCode
primaryMailingAddress
region
state
street
}
}
}

0 comments on commit 02d6e2f

Please sign in to comment.