👕 Apply node-param-default-wrong-for-collection (#3180)

This commit is contained in:
Iván Ovejero 2022-04-22 12:13:35 +02:00 committed by GitHub
parent aa08cebbf9
commit ca49288bcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 19 additions and 18 deletions

View file

@ -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-trigger-node": "error",
"n8n-nodes-base/node-class-description-inputs-wrong-regular-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-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"
} }
}, },
], ],

View file

@ -272,7 +272,7 @@ export class AwsRekognition implements INodeType {
displayName: 'Word Filter', displayName: 'Word Filter',
name: 'wordFilterUi', name: 'wordFilterUi',
type: 'collection', type: 'collection',
default: '', default: {},
placeholder: 'Add Word Filter', placeholder: 'Add Word Filter',
displayOptions: { displayOptions: {
show: { show: {

View file

@ -374,7 +374,7 @@ export const appointmentFields: INodeProperties[] = [
displayName: 'Filters', displayName: 'Filters',
name: 'filters', name: 'filters',
type: 'collection', type: 'collection',
default: '', default: {},
placeholder: 'Add Filter', placeholder: 'Add Filter',
displayOptions: { displayOptions: {
show: { show: {

View file

@ -294,7 +294,7 @@ export const taskFields: INodeProperties[] = [
displayName: 'Filters', displayName: 'Filters',
name: 'filters', name: 'filters',
type: 'collection', type: 'collection',
default: false, default: {},
placeholder: 'Add Filter', placeholder: 'Add Filter',
displayOptions: { displayOptions: {
show: { show: {

View file

@ -863,7 +863,7 @@ export class GoogleSheets implements INodeType {
name: 'gridProperties', name: 'gridProperties',
type: 'collection', type: 'collection',
placeholder: 'Add Property', placeholder: 'Add Property',
default: '', default: {},
options: [ options: [
{ {
displayName: 'Column Count', displayName: 'Column Count',

View file

@ -366,7 +366,7 @@ export const channelFields: INodeProperties[] = [
displayName: 'Channel', displayName: 'Channel',
name: 'channel', name: 'channel',
type: 'collection', type: 'collection',
default: '', default: {},
placeholder: 'Add Channel Settings', placeholder: 'Add Channel Settings',
typeOptions: { typeOptions: {
multipleValues: false, multipleValues: false,
@ -482,7 +482,7 @@ export const channelFields: INodeProperties[] = [
displayName: 'Image', displayName: 'Image',
name: 'image', name: 'image',
type: 'collection', type: 'collection',
default: '', default: {},
placeholder: 'Add Channel Settings', placeholder: 'Add Channel Settings',
description: `The image object encapsulates information about images that display on the channel's channel page or video watch pages.`, description: `The image object encapsulates information about images that display on the channel's channel page or video watch pages.`,
typeOptions: { typeOptions: {
@ -519,7 +519,7 @@ export const channelFields: INodeProperties[] = [
displayName: 'Status', displayName: 'Status',
name: 'status', name: 'status',
type: 'collection', type: 'collection',
default: '', default: {},
placeholder: 'Add Status', placeholder: 'Add Status',
typeOptions: { typeOptions: {
multipleValues: false, multipleValues: false,

View file

@ -493,7 +493,7 @@ export const alertFields: INodeProperties[] = [
placeholder: 'Add Field', placeholder: 'Add Field',
type: 'collection', type: 'collection',
required: false, required: false,
default: '', default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -577,7 +577,7 @@ export const alertFields: INodeProperties[] = [
placeholder: 'Add Field', placeholder: 'Add Field',
type: 'collection', type: 'collection',
required: false, required: false,
default: '', default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -604,7 +604,7 @@ export const alertFields: INodeProperties[] = [
name: 'updateFields', name: 'updateFields',
type: 'collection', type: 'collection',
placeholder: 'Add Field', placeholder: 'Add Field',
default: '', default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [

View file

@ -329,7 +329,7 @@ export const caseFields: INodeProperties[] = [
}, },
}, },
required: false, required: false,
default: '', default: {},
options: [ options: [
{ {
displayName: 'Custom Fields', displayName: 'Custom Fields',
@ -433,7 +433,7 @@ export const caseFields: INodeProperties[] = [
}, },
}, },
required: false, required: false,
default: '', default: {},
options: [ options: [
{ {
displayName: 'Custom Fields', displayName: 'Custom Fields',

View file

@ -382,7 +382,7 @@ export const observableFields: INodeProperties[] = [
type: 'collection', type: 'collection',
placeholder: 'Add Option', placeholder: 'Add Option',
required: false, required: false,
default: '', default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -410,7 +410,7 @@ export const observableFields: INodeProperties[] = [
name: 'updateFields', name: 'updateFields',
type: 'collection', type: 'collection',
required: false, required: false,
default: '', default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -530,7 +530,7 @@ export const observableFields: INodeProperties[] = [
name: 'filters', name: 'filters',
type: 'collection', type: 'collection',
required: false, required: false,
default: '', default: {},
placeholder: 'Add Filter', placeholder: 'Add Filter',
displayOptions: { displayOptions: {
show: { show: {

View file

@ -215,7 +215,7 @@ export const taskFields: INodeProperties[] = [
name: 'options', name: 'options',
placeholder: 'Add Option', placeholder: 'Add Option',
required: false, required: false,
default: '', default: {},
displayOptions: { displayOptions: {
show: { show: {
resource: [ resource: [
@ -264,7 +264,7 @@ export const taskFields: INodeProperties[] = [
type: 'collection', type: 'collection',
name: 'updateFields', name: 'updateFields',
placeholder: 'Add Field', placeholder: 'Add Field',
default: '', default: {},
required: false, required: false,
displayOptions: { displayOptions: {
show: { show: {