dify icon indicating copy to clipboard operation
dify copied to clipboard

Unable to delete input variables under specific node combinations in workflow

Open shiyang1026 opened this issue 11 months ago • 4 comments

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

  1. Create a task in Workflow mode.
  2. Set up the following node combination (see the attached image).
  3. Try to delete an input variable at "start" node.
Image Image

✔️ Expected Behavior

The input variable should be deletable.

❌ Actual Behavior

The input variable cannot be deleted.

Image

shiyang1026 avatar Feb 13 '25 07:02 shiyang1026

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:

  1. Data Type of t: Ensure that the variable t is indeed an array or string before calling join on it. You might need to trace back in the code to see where t is being assigned and ensure it is being set correctly.

  2. 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].

  3. 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

dosubot[bot] avatar Feb 13 '25 07:02 dosubot[bot]

@crazywoola Hi, I’d like to give this a try. Could you assign me this issue?

shiyang1026 avatar Feb 13 '25 15:02 shiyang1026

@crazywoola Hi, I’d like to give this a try. Could you assign me this issue?

Sure, assigned.

crazywoola avatar Feb 14 '25 01:02 crazywoola

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 join method 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!

dosubot[bot] avatar Mar 17 '25 16:03 dosubot[bot]