mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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:
|
description:
|
||||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
loadOptionsMethod: 'getConferenceSolutations',
|
loadOptionsMethod: 'getConferenceSolutions',
|
||||||
loadOptionsDependsOn: ['calendar'],
|
loadOptionsDependsOn: ['calendar'],
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -89,10 +89,10 @@ export class GoogleCalendar implements INodeType {
|
||||||
loadOptions: {
|
loadOptions: {
|
||||||
// Get all the calendars to display them to user so that they can
|
// Get all the calendars to display them to user so that they can
|
||||||
// select them easily
|
// select them easily
|
||||||
async getConferenceSolutations(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getConferenceSolutions(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const returnData: INodePropertyOptions[] = [];
|
const returnData: INodePropertyOptions[] = [];
|
||||||
const calendar = this.getCurrentNodeParameter('calendar') as string;
|
const calendar = this.getCurrentNodeParameter('calendar', { extractValue: true }) as string;
|
||||||
const posibleSolutions: IDataObject = {
|
const possibleSolutions: IDataObject = {
|
||||||
eventHangout: 'Google Hangout',
|
eventHangout: 'Google Hangout',
|
||||||
eventNamedHangout: 'Google Hangout Classic',
|
eventNamedHangout: 'Google Hangout Classic',
|
||||||
hangoutsMeet: 'Google Meet',
|
hangoutsMeet: 'Google Meet',
|
||||||
|
@ -106,7 +106,7 @@ export class GoogleCalendar implements INodeType {
|
||||||
);
|
);
|
||||||
for (const solution of allowedConferenceSolutionTypes) {
|
for (const solution of allowedConferenceSolutionTypes) {
|
||||||
returnData.push({
|
returnData.push({
|
||||||
name: posibleSolutions[solution] as string,
|
name: possibleSolutions[solution] as string,
|
||||||
value: solution,
|
value: solution,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue