Unable to delete input variables under specific node combinations in workflow
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
Cloud
Steps to reproduce
- Create a task in Workflow mode.
- Set up the following node combination (see the attached image).
- Try to delete an input variable at "start" node.
✔️ Expected Behavior
The input variable should be deletable.
❌ Actual Behavior
The input variable cannot be deleted.
Hey @shiyang1026! 👋 I'm here to help you with bug fixes, answer your questions, and even guide you on how to contribute!
The issue you're encountering with the inability to delete input variables in the Dify workflow interface, accompanied by the "Uncaught TypeError: t.join is not a function" error, suggests a problem with how the input variables are being processed in the code.
The error message indicates that the code is attempting to use the join method on a variable t that is not an array or a string, which are the types that support the join method. This could be due to an unexpected data type being passed to a function that expects an array or string.
To address this issue, you can check the following:
-
Data Type of
t: Ensure that the variabletis indeed an array or string before callingjoinon it. You might need to trace back in the code to see wheretis being assigned and ensure it is being set correctly. -
Function Handling Deletion: The function responsible for handling the deletion of input variables is
handleDelete. It might be helpful to review this function to ensure that it correctly processes the input variables and updates the state accordingly [1]. -
Node Combinations: Since the issue occurs under specific node combinations, verify if there are any conditions or dependencies between nodes that might affect the input variable's state or type.
If the issue persists, consider checking for any recent changes in the codebase that might have introduced this behavior, or if there are any known issues related to this error in the current version of Dify you are using.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report
@crazywoola Hi, I’d like to give this a try. Could you assign me this issue?
Hi, @shiyang1026. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.
Issue Summary
- A bug in Dify version 0.15.3 prevents deletion of input variables at the "start" node in certain workflows.
- The issue might be related to a "TypeError" with the
joinmethod on an incorrect data type. - You have shown interest in resolving the issue and have been assigned to it by crazywoola.
Next Steps
- Please confirm if this issue is still relevant to the latest version of the Dify repository. If so, you can keep the discussion open by commenting here.
- If there is no further activity, this issue will be automatically closed in 15 days.
Thank you for your understanding and contribution!