Frontend crash after adding an step into iteration
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
1.3.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Create an iteration and add a tool call step (such as a DuckDuckGo search) within it. The frontend crashes at this point, and the situation persists even after refreshing.
Here's the console log
3374-6c638544ae71a81e.js:1 Uncaught TypeError: i.find is not a function
at 3374-6c638544ae71a81e.js:1:397082
at Array.forEach (
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Can you provide the steps or DSL to reproduce this error?
I also have crash as well with this DSL:
as soon as I attach strctured ouput from LLM to Iteration Input it crashes.
note: it crashing on both self hosted (1.3.0) and cloud.dify.ai
It seems like related to newly introduced structured output. If I create array for Iterator using 'Code' node everything working fine and there is no crash
I have fixed in this PR
fix: i.find is not a function (#18945)
Will be released later.