Skip to content

Commit 2c704e3

Browse files
committed
0.26.5
1 parent 9c978ea commit 2c704e3

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sipgate/integration-bridge",
3-
"version": "0.26.4",
3+
"version": "0.26.5",
44
"description": "sipgate Integration Bridge Framework",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/util/contact.util.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ export function sanitizeContact(contact: Contact, locale: string): Contact {
3232
phoneNumbers: contact.phoneNumbers.map((phoneNumber) =>
3333
parsePhoneNumber(phoneNumber, locale),
3434
),
35-
relatesTo: uniqWith(contact.relatesTo, isEqual),
35+
relatesTo: contact.relatesTo
36+
? uniqWith(contact.relatesTo, isEqual)
37+
: undefined,
3638
};
3739
return result;
3840
}

0 commit comments

Comments
 (0)