jensrossbach / node-red-contrib-chronos

Time-based Node-RED scheduling, repeating, queueing, routing, filtering and manipulating nodes
https://jensrossbach.github.io/node-red-contrib-chronos
MIT License
28 stars 1 forks source link

Fix crash when no state is active and other improvements #159

Closed jensrossbach closed 3 months ago

jensrossbach commented 3 months ago

This pull request fixes a crash in state node that occurs when the node is stateless (e.g., there are only states with manual triggers configured) and a state is activated.

Additionally, when a state is activated via input message with timeout and all states are manually triggered ones, the node now falls back into stateless state after the state timed out.

Finally, the color of the stateless state has been changed from yellow to grey in the Node-RED editor.