Skip to content

Commit

Permalink
Merge pull request #6 from Sineos/fix_passthrough_init
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
Sineos authored Feb 11, 2024
2 parents 04db5d0 + 34a98ec commit bc786a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timeouttrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function(RED) {
this.duration = n.duration || 5;
this.ontimeoutval = n.ontimeoutval || '0';
this.ontimeouttype = n.ontimeouttype || 'str';
this.passthrough = n.passthrough;
this.passthrough = n.passthrough ?? true; // default to true if value is nullish

if (this.duration <= 0) {
this.duration = 0;
Expand Down

0 comments on commit bc786a7

Please sign in to comment.