Do not error even if no contacts found

This commit is contained in:
Jan Oberhauser 2021-12-11 17:08:45 +01:00
parent 556e8e9417
commit 66745033e6

View file

@ -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) {