mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-05 01:02:59 +08:00
fix: loop filter (#6033)
This commit is contained in:
@@ -56,7 +56,7 @@ export const dispatchLoop = async (props: Props): Promise<Response> => {
|
||||
let interactiveResponse: WorkflowInteractiveResponseType | undefined = undefined;
|
||||
let index = 0;
|
||||
|
||||
for await (const item of loopInputArray.filter(Boolean)) {
|
||||
for await (const item of loopInputArray) {
|
||||
// Skip already looped
|
||||
if (lastIndex && index < lastIndex) {
|
||||
index++;
|
||||
|
||||
Reference in New Issue
Block a user