Adding else condition branch error
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.10.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@luxi001-aaa Hello there! I'm here to help you with any bugs, questions, or contributions you may have for Dify. I'll do my best to assist you while waiting for a human maintainer.
The error message "Uncaught TypeError: Cannot add property 1, object is not extensible" typically occurs in JavaScript when you try to add a property to an object that has been made non-extensible. This can happen if the object has been frozen using Object.freeze() or sealed using Object.seal(), or if Object.preventExtensions() has been called on it.
In the context of the Dify platform, this error might be related to how the '+ ELIF' and 'ELSE' functionalities are implemented in the codebase. The IfElseNode component in the Dify codebase handles these functionalities by mapping over a cases array to render 'IF' and 'ELIF' conditions, and separately rendering the 'ELSE' condition [1].
To resolve this issue, you should check the part of the code where the object is being modified to ensure that it is not non-extensible. Look for any use of Object.freeze(), Object.seal(), or Object.preventExtensions() that might be affecting the object in question. If you have control over the code, you might need to adjust how the object is being handled to allow for modifications.
To continue talking to Dosu, mention @dosu.
Please provide the DSL
I found a rule that in the process of workflow orchestration, the preview debugging robot functions normally when it is opened, and cannot add else functions when it is closed, which is the case in any process
请提供 DSL
I found a rule that in the process of workflow orchestration, the preview debugging robot functions normally when it is opened, and cannot add else functions when it is closed, which is the case in any process
I encountered the same issue. Specifically, the IfElseNode can add the ELIF condition only when the preview debugging window is opened first.