fix(Google Calendar Node): Fix issue with conference data types not loading (#11185)

This commit is contained in:
Jon 2024-10-10 14:20:28 +01:00 committed by GitHub
parent a6664ef3a2
commit 401275884e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -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: '',

View file

@ -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,
});
}