Commit 97ad4f1
authored
fix: allow add if-then immediately after for-each (#1243)
## Problem
Bug: cannot add if-then step immediately after the for-each step.
Cause: misconfigured condition blocking the check for `isLastStep` which
is used to determine whether certain apps can be added
## Solution
Use the `hasNoActionSteps` condition which correctly indicates whether
it is `isLastStep` based on the steps in the pipe.
## Tests
Test that steps can still be added correctly
- [ ] If-then only can be added as a last step
- [ ] Can add 1 if-then inside a for-each
- [ ] Cannot add for-each inside if-then
- [ ] For-each can only be added as last step
- [ ] Can only be added once
- [ ] Cannot add delay inside for-each
- [ ] All other steps can be added
## Before & After Screenshots
**BEFORE**:
https://github.com/user-attachments/assets/53dcbf1d-db4e-4a46-bf01-023e516d7930
**AFTER**:
https://github.com/user-attachments/assets/cd178b6b-9103-4773-9a19-e06364da01d01 parent ef7e016 commit 97ad4f1
File tree
1 file changed
+1
-1
lines changed- packages/frontend/src/components/FlowStepGroup/Content/ForEach
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments