diff --git a/.eslintrc.js b/.eslintrc.js index 1d9f71f3ba..ed5ddad0b2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -378,7 +378,8 @@ module.exports = { "n8n-nodes-base/node-class-description-inputs-wrong-trigger-node": "error", "n8n-nodes-base/node-class-description-inputs-wrong-regular-node": "error", "n8n-nodes-base/node-class-description-outputs-wrong": "error", - "n8n-nodes-base/node-execute-block-double-assertion-for-items": "error" + "n8n-nodes-base/node-execute-block-double-assertion-for-items": "error", + "n8n-nodes-base/node-param-default-wrong-for-collection": "error" } }, ], diff --git a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts index ff3367b656..60a484d3c1 100644 --- a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts +++ b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts @@ -272,7 +272,7 @@ export class AwsRekognition implements INodeType { displayName: 'Word Filter', name: 'wordFilterUi', type: 'collection', - default: '', + default: {}, placeholder: 'Add Word Filter', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts index fcdb127dd2..08823c3988 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts @@ -374,7 +374,7 @@ export const appointmentFields: INodeProperties[] = [ displayName: 'Filters', name: 'filters', type: 'collection', - default: '', + default: {}, placeholder: 'Add Filter', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts index b3eb19a420..f577e0a834 100644 --- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts @@ -294,7 +294,7 @@ export const taskFields: INodeProperties[] = [ displayName: 'Filters', name: 'filters', type: 'collection', - default: false, + default: {}, placeholder: 'Add Filter', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts index eaa1782af0..d893fb292d 100644 --- a/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts +++ b/packages/nodes-base/nodes/Google/Sheet/GoogleSheets.node.ts @@ -863,7 +863,7 @@ export class GoogleSheets implements INodeType { name: 'gridProperties', type: 'collection', placeholder: 'Add Property', - default: '', + default: {}, options: [ { displayName: 'Column Count', diff --git a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts index e41e23e638..0e527e51ff 100644 --- a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts +++ b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts @@ -366,7 +366,7 @@ export const channelFields: INodeProperties[] = [ displayName: 'Channel', name: 'channel', type: 'collection', - default: '', + default: {}, placeholder: 'Add Channel Settings', typeOptions: { multipleValues: false, @@ -482,7 +482,7 @@ export const channelFields: INodeProperties[] = [ displayName: 'Image', name: 'image', type: 'collection', - default: '', + default: {}, placeholder: 'Add Channel Settings', description: `The image object encapsulates information about images that display on the channel's channel page or video watch pages.`, typeOptions: { @@ -519,7 +519,7 @@ export const channelFields: INodeProperties[] = [ displayName: 'Status', name: 'status', type: 'collection', - default: '', + default: {}, placeholder: 'Add Status', typeOptions: { multipleValues: false, diff --git a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts index 86ebd8631e..b50e22c309 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts @@ -493,7 +493,7 @@ export const alertFields: INodeProperties[] = [ placeholder: 'Add Field', type: 'collection', required: false, - default: '', + default: {}, displayOptions: { show: { resource: [ @@ -577,7 +577,7 @@ export const alertFields: INodeProperties[] = [ placeholder: 'Add Field', type: 'collection', required: false, - default: '', + default: {}, displayOptions: { show: { resource: [ @@ -604,7 +604,7 @@ export const alertFields: INodeProperties[] = [ name: 'updateFields', type: 'collection', placeholder: 'Add Field', - default: '', + default: {}, displayOptions: { show: { resource: [ diff --git a/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts index f6dd1b3a54..42d4cbb689 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts @@ -329,7 +329,7 @@ export const caseFields: INodeProperties[] = [ }, }, required: false, - default: '', + default: {}, options: [ { displayName: 'Custom Fields', @@ -433,7 +433,7 @@ export const caseFields: INodeProperties[] = [ }, }, required: false, - default: '', + default: {}, options: [ { displayName: 'Custom Fields', diff --git a/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts index 76d345e031..434c8b924b 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts @@ -382,7 +382,7 @@ export const observableFields: INodeProperties[] = [ type: 'collection', placeholder: 'Add Option', required: false, - default: '', + default: {}, displayOptions: { show: { resource: [ @@ -410,7 +410,7 @@ export const observableFields: INodeProperties[] = [ name: 'updateFields', type: 'collection', required: false, - default: '', + default: {}, displayOptions: { show: { resource: [ @@ -530,7 +530,7 @@ export const observableFields: INodeProperties[] = [ name: 'filters', type: 'collection', required: false, - default: '', + default: {}, placeholder: 'Add Filter', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts index 6c2a20c03a..4df6e92eeb 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts @@ -215,7 +215,7 @@ export const taskFields: INodeProperties[] = [ name: 'options', placeholder: 'Add Option', required: false, - default: '', + default: {}, displayOptions: { show: { resource: [ @@ -264,7 +264,7 @@ export const taskFields: INodeProperties[] = [ type: 'collection', name: 'updateFields', placeholder: 'Add Field', - default: '', + default: {}, required: false, displayOptions: { show: {