Hey all,
i was playing around with the api and was testing to update all flows and a specific flow via
- put /flows
- put /flow/{flowid}
i noticed that when you update a flow via /flow/{flowid} that the tab node inside of flows.json got a z property pointing to itself.
Is this a bug? Custom nodes could iterate the z property to find it's parent node up to the tab node for instances.
I tested it with latest release NodeRed 1.3.5
How to reproduce:
GET /flows
[
{
"id": "1a292e5f.95f132",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
}
]
PUT /flow/1a292e5f.95f132
body:
{
"id": "1a292e5f.95f132",
"label": "Flow 1",
"disabled": false,
"info": "Hello_Z",
"nodes": []
}
GET /flows
[
{
"type": "tab",
"label": "Flow 1",
"id": "1a292e5f.95f132",
"info": "Hello_Z",
"disabled": false,
"z": "1a292e5f.95f132"
}
]