Node-Red don´t set node properties default values on load

Hi @iiot2k,
Indeed when you afterwards add extra properties to a node, you simetimes need to add some extra code to make sure existing nodes don't fail. Because you need to make sure those nodes keep working fine in following circumstances:

  1. When the config screen of an existing node is opened.
  2. When the node runs without the config screen has been opened.

I have described my way of working here. Hopefully that can answer some of your questions already.

Bart

1 Like