diff --git a/packages/node_modules/@node-red/nodes/core/function/89-trigger.html b/packages/node_modules/@node-red/nodes/core/function/89-trigger.html
index 6935e14cc..edbb84e5a 100644
--- a/packages/node_modules/@node-red/nodes/core/function/89-trigger.html
+++ b/packages/node_modules/@node-red/nodes/core/function/89-trigger.html
@@ -73,6 +73,7 @@
+
@@ -128,10 +129,10 @@
$("#node-input-second").change(function() {
if ($("#node-input-second").is(":checked")) {
- that.outputs = 2;
+ $("#node-input-outputs").val(2);
}
else {
- that.outputs = 1;
+ $("#node-input-outputs").val(1);
}
});
$("#node-then-type").on("change", function() {
@@ -140,7 +141,7 @@
$(".node-type-duration").hide();
$("#node-second-output").hide();
$("#node-input-second").prop('checked', false);
- that.outputs = 1;
+ $("#node-input-outputs").val(1);
}
else if ($(this).val() == "loop") {
if ($("#node-input-duration").val() == 0) { $("#node-input-duration").val(250); }
@@ -148,7 +149,7 @@
$(".node-type-duration").show();
$("#node-second-output").hide();
$("#node-input-second").prop('checked', false);
- that.outputs = 1;
+ $("#node-input-outputs").val(1);
} else {
if ($("#node-input-duration").val() == 0) { $("#node-input-duration").val(250); }
$(".node-type-wait").show();