🐛 Bug fix for Google Calendar (#1096)

This commit is contained in:
Ricardo Espinoza 2020-10-23 18:01:59 -04:00 committed by GitHub
parent 044c986f30
commit 78c846277b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,13 +71,6 @@ export class GoogleCalendar implements INodeType {
methods = {
loadOptions: {
// "conferenceProperties": {
// "allowedConferenceSolutionTypes": [
// "hangoutsMeet"
// ]
// Get all the calendars to display them to user so that he can
// select them easily
async getConferenceSolutations(
@ -550,11 +543,11 @@ export class GoogleCalendar implements INodeType {
);
}
}
}
if (Array.isArray(responseData)) {
returnData.push.apply(returnData, responseData as IDataObject[]);
} else if (responseData !== undefined) {
returnData.push(responseData as IDataObject);
if (Array.isArray(responseData)) {
returnData.push.apply(returnData, responseData as IDataObject[]);
} else if (responseData !== undefined) {
returnData.push(responseData as IDataObject);
}
}
return [this.helpers.returnJsonArray(returnData)];
}