@zimbra/api-client 92.0.0 → 92.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,6 @@ import emitter from 'mitt';
11
11
  import { gql, ApolloLink, Observable, InMemoryCache, defaultDataIdFromObject } from '@apollo/client/core';
12
12
  import { BatchLink } from '@apollo/client/link/batch';
13
13
  import { ErrorLink } from '@apollo/client/link/error';
14
- import isEqual from 'lodash/isEqual';
15
14
  import uniqWith from 'lodash/uniqWith';
16
15
 
17
16
  const asArray = (fns) => (Array.isArray(fns) ? fns : fns ? [fns] : []);
@@ -8461,7 +8460,7 @@ const typePolicies = {
8461
8460
  fields: {
8462
8461
  emailAddresses: {
8463
8462
  merge(existing, incoming) {
8464
- return uniqWith([...(existing || []), ...(incoming || [])], isEqual);
8463
+ return uniqWith([...(existing || []), ...(incoming || [])], (a, b) => a.address === b.address && a.type === b.type);
8465
8464
  }
8466
8465
  }
8467
8466
  }