neilenns / node-red-contrib-wled2

NodeRed node for controlling WLED
MIT License
19 stars 8 forks source link

Node throws unhandled exception if payload is null #73

Closed neilenns closed 3 years ago

neilenns commented 3 years ago

If no payload is provided on the input (e.g. via an inject node with the payload removed) then the node throws uncaught exceptions.

This all happens in wled2.ts:setState() because of all the payload. calls that should be payload?..