You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @HiChen404! 👋 I'm here to help you with bug fixes, questions, and more while you wait for a human maintainer. Let's squash those bugs together!
The var-picker does not update when edges change in the node panel in Dify version 0.8.0 because the current implementation lacks logic to update the var-picker when edges are modified. The existing code handles various node interactions but does not include functionality to update the var-picker based on edge changes [1].
To resolve this issue, you need to add logic to update the var-picker whenever edges are changed. This could involve adding a function that specifically updates the var-picker and calling it within the relevant edge-handling functions. The useEdgesInteractions hook includes functions like handleEdgesChange that manage edge interactions and could be extended to trigger updates to the var-picker[2].
Additionally, leveraging the event emitter context (useEventEmitterContextContext) could help trigger updates to the var-picker by subscribing to relevant events and dispatching commands accordingly [3].
Self Checks
Dify version
0.8.0
Cloud or Self Hosted
Cloud
Steps to reproduce
When focusing on a node and changing the connection, the variables in the
var-picker
will not be updated to the latest.dify.workflow.var.not.update.mp4
✔️ Expected Behavior
var list updated to the latest when connected edges change.
❌ Actual Behavior
Refresh only when switching node panel.
The text was updated successfully, but these errors were encountered: