Add default polling interval (Poll trigger nodes) N8N-2874 (#2730)

*  added default polling interval to Poll trigger nodes

*  added default value to polling triger
This commit is contained in:
Michael Kret 2022-01-30 15:56:39 +02:00 committed by GitHub
parent 3cde6bd426
commit aa3cbe5358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -83,6 +83,7 @@ export default mixins(genericHelpers)
selectedOption: undefined,
};
},
computed: {
getPlaceholderText (): string {
const placeholder = this.$locale.nodeText().placeholder(this.parameter, this.path);

View file

@ -56,7 +56,7 @@ export function getSpecialNodeParameters(nodeType: INodeType): INodeProperties[]
multipleValues: true,
multipleValueButtonText: 'Add Poll Time',
},
default: {},
default: { item: [{ mode: 'everyMinute' }] },
description: 'Time at which polling should occur',
placeholder: 'Add Poll Time',
options: [
@ -782,7 +782,6 @@ export function getNodeParameters(
if (Object.keys(collectionValues).length !== 0 || returnDefaults) {
// Set only if value got found
if (returnDefaults) {
// Set also when it has the default value
if (collectionValues === undefined) {