-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Simplify loop stopping condition to prevent off-by-one errors (#…
…6696) * 🐛 (loop.py): Fix logic in LoopComponent to correctly evaluate if loop should stop based on current index and data length 📝 (LoopTemplate.json): Update output_types to be arrays for consistency and readability in LoopTemplate JSON file * 🐛 (loop.py): fix logic in stop condition to correctly evaluate if loop should stop or continue based on current index and data length * [autofix.ci] apply automated fixes * ✅ (loop-component.spec.ts): update test expectation to match the correct number of occurrences of "modified_value" in the output --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
- Loading branch information
1 parent
114c25e
commit af2d77d
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters