mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(Google Calendar Node): Fix issue with conference data types not loading (#11185)
This commit is contained in:
parent
a6664ef3a2
commit
401275884e
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue