From 66745033e6880e71fd44b2aaf7943cc23a17ce8c Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Sat, 11 Dec 2021 17:08:45 +0100 Subject: [PATCH] :zap: Do not error even if no contacts found --- .../nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts index 910c6baa07..adf6c23b53 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GoogleContacts.node.ts @@ -317,7 +317,8 @@ export class GoogleContacts implements INodeType { {}, qs, ); - responseData = responseData.connections || responseData.results.map((result: IDataObject) => result.person); + + responseData = responseData.connections || responseData.results?.map((result: IDataObject) => result.person) || []; } if (!rawData) {