The display loading of dropdown options defined as a Constant is problematic
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
0.15.3
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- The workflow input variable is of dropdown option type.
- Publish as a tool.
- Add to a new workflow.
- Define this variable as Constant, and select a specific option.
- After switching nodes, click on the node again
✔️ Expected Behavior
The previously selected options should load correctly and display.
❌ Actual Behavior
The previously selected options do not load and display
Hey @waylonwang! 👋 I'm here to help you with bug fixes, questions, and becoming a contributor. If you need any assistance, just let me know!
The issue you're experiencing with dropdown options not loading correctly when defined as a constant in the Dify workflow system might be related to how state persistence is handled. Unfortunately, I couldn't find specific information on how Dify manages the persistence of dropdown selections when switching nodes. However, it might be helpful to check the implementation of state management and event handling for dropdowns in the frontend code.
You could look into the components responsible for rendering dropdowns and managing their state to ensure that the selected options are correctly saved and reloaded. Additionally, reviewing any event listeners or handlers that manage changes to dropdown selections might provide insights into potential issues.
If the problem persists, consider checking for any updates or patches in the Dify repository that might address this issue.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other