FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
205 stars 49 forks source link

Switch widget does not send _client property the first time it is clicked after NR restart #588

Closed colinl closed 8 months ago

colinl commented 8 months ago

A ui-switch with default configuration does not include the _client property the first time it is clicked (after widget deploy or restart). It is present for subsequent clicks.

joepavitt commented 8 months ago

On a re-deploy I don't see this issue?

https://github.com/FlowFuse/node-red-dashboard/assets/99246719/b2bfcdbf-d804-404e-aa62-b581c446ad41

joepavitt commented 8 months ago

I do however see it after a restart of Node-RED, where the entire _client object is missing. Investigating further.

Update: Found the problem, fix incoming.