Closed phfeustel closed 22 hours ago
fyi @Steve-Mcl
Using node-red 4.0.0 Beta 1 I am not able to replicate the issue. I thought it was necessary to use v4 when using dashboard nodes in a subflow.
@colinl Thanks for the hint. Would you please point me to the documentation on this?
@colinl I think I found what you meant: https://dashboard.flowfuse.com/user/subflows.html#configuring-subflows-for-dashboard-2-0
But luckily my use case does not need configurable ui-groups; the group where the text input should be displayed in is static.
In any way, I guess, the bug mentioned above is worth fixing.
@phfeustel Node-RED 4.0+ is needed for Dashboard 2.0 nodes to work in a subflow - in all occasions, not just when using a group
.
If you're hitting this problem in Node-RED 4.0+, then please let us know.
@joepavitt thanks for the feedback.
I did a quick retest on Node-RED: 4.0.0-beta.: Same issue; I think the comparison code from above is just bugged and needs switching the conditions.
Just checking, did you restart node red? As I said, I don't see the issue.
Yes, I'm using node red in docker: Stop the 3.1.3; pulled the 4.0.0-beta image; started this and then did a full page refresh in the browser.
@joepavitt Any update or ETA?
As a side node: I patched the line above in my local installation and it is running now for 3 weeks stable. Should I open an pull request?
Should I open an pull request?
please, PRs are always welcome, never need to ask for permission :)
Current Behavior
Using a text input node in a subflow crashes Layout Order Editor.
I dug a bit into it and I think the line to blame is this one: In my case, when looking into the JS object and also the exported flow JSON
env
on the subflow does not have anyui
property.So, one way to fix this, could be to switch the comparisons from:
subflowDef.env.filter(env => env.ui.type === 'conf-types' && env.type === 'ui-group')
tosubflowDef.env.filter(env => env.type === 'ui-group' && env.ui.type === 'conf-types')
Expected Behavior
After adding a text input node in a sub flow the layout order editor is still functional.
Steps To Reproduce
Environment
Have you provided an initial effort estimate for this issue?
I am not a FlowFuse team member