From 8b68862ed62bcc415363e4c2b723e405b635d8e0 Mon Sep 17 00:00:00 2001 From: Fred <10602047+freddieptf@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:20:25 +0300 Subject: [PATCH] Update remote-place-cache.ts --- src/lib/remote-place-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/remote-place-cache.ts b/src/lib/remote-place-cache.ts index 3787625..affccd6 100644 --- a/src/lib/remote-place-cache.ts +++ b/src/lib/remote-place-cache.ts @@ -95,7 +95,7 @@ export default class RemotePlaceCache { private static convertContactToRemotePlace(doc: any, uniqueKeyProperties: ContactProperty[], hierarchyLevel: HierarchyConstraint): RemotePlace { const uniqueKeyStringValues: FormattedPropertyCollection = {}; for (const property of uniqueKeyProperties) { - const value = doc[property.property_name].toString(); + const value = doc[property.property_name]?.toString(); if (value) { uniqueKeyStringValues[property.property_name] = new RemotePlacePropertyValue(value, property); }