Skip to content

Commit

Permalink
fix(Google Calendar Node): Fix issue with conference data types not l…
Browse files Browse the repository at this point in the history
…oading (n8n-io#11185)
  • Loading branch information
Joffcom authored Oct 10, 2024
1 parent a6664ef commit 4012758
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
});
}
Expand Down

0 comments on commit 4012758

Please sign in to comment.