mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Google Calendar Node): Fix issue with conference data types not loading (#11185)
This commit is contained in:
@@ -216,7 +216,7 @@ export const eventFields: INodeProperties[] = [
|
||||
description:
|
||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getConferenceSolutations',
|
||||
loadOptionsMethod: 'getConferenceSolutions',
|
||||
loadOptionsDependsOn: ['calendar'],
|
||||
},
|
||||
default: '',
|
||||
|
||||
@@ -89,10 +89,10 @@ export class GoogleCalendar implements INodeType {
|
||||
loadOptions: {
|
||||
// Get all the calendars to display them to user so that they can
|
||||
// select them easily
|
||||
async getConferenceSolutations(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
async getConferenceSolutions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const calendar = this.getCurrentNodeParameter('calendar') as string;
|
||||
const posibleSolutions: IDataObject = {
|
||||
const calendar = this.getCurrentNodeParameter('calendar', { extractValue: true }) as string;
|
||||
const possibleSolutions: IDataObject = {
|
||||
eventHangout: 'Google Hangout',
|
||||
eventNamedHangout: 'Google Hangout Classic',
|
||||
hangoutsMeet: 'Google Meet',
|
||||
@@ -106,7 +106,7 @@ export class GoogleCalendar implements INodeType {
|
||||
);
|
||||
for (const solution of allowedConferenceSolutionTypes) {
|
||||
returnData.push({
|
||||
name: posibleSolutions[solution] as string,
|
||||
name: possibleSolutions[solution] as string,
|
||||
value: solution,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user