Repository navigation
Clear trigger overrideDelay when saved as wait to be reset - #5972
Merged
knolleary merged 1 commit intoOct 7, 2026
Merged
Conversation
The trigger node hides the override option when it is set to wait to be reset, but a value enabled in another mode stayed set. A message with msg.delay then made the node send its second message after that delay instead of waiting to be reset. Fixes node-red#5969
|
|
Member
|
@knolleary - looks good to me - happy for you to merge it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Fixes #5969
The trigger node hides "override delay with msg.delay" when "then" is set to "wait to be reset". A value enabled earlier in "wait for" mode still stayed in the node config as
"overrideDelay": true, and the runtime still uses it. In that mode, a message withmsg.delaythen makes the node send the "then send" value after that delay, instead of waiting to be reset.oneditsavealready sets the duration to0for this mode. It now also unchecks the hidden override option. Switching to this mode already unchecks the hidden second-output option in the same way.A node saved before this change keeps
overrideDelay: trueuntil it is edited and saved again. If you want the runtime to also ignoreoverrideDelaywhen the duration is 0, I can add that.How I checked it:
mainand opened a trigger node with "wait for" and "override delay" set. I switched it to "wait to be reset" and clicked Done.RED.nodes.node(id).overrideDelaystayedtrue.overrideDelayisfalseanddurationis"0".duration: "0"andoverrideDelay: truegot a message withdelay: 100, and it sent both theop1and theop2value.npm run test: 2863 passing, 60 pending, 1 failing.mainon my machine (macOS).Checklist
npm run testto verify the unit tests pass