Skip to content

Commit 0f5f179

Browse files
committed
chore: refactor based on bugbot
1 parent 25fc64a commit 0f5f179

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/frontend/src/components/FlowStepGroup/hooks/useDeleteConfirmation.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ const useDeleteConfirmation = (
3939
await deleteStep({
4040
variables: { input: { ids: idsToDelete } },
4141
})
42-
} else if (type === TOOLBOX_ACTIONS.IfThen) {
43-
if (!branchSteps) {
44-
return
45-
}
42+
} else if (type === TOOLBOX_ACTIONS.IfThen && branchSteps) {
4643
const idsToDelete = branchSteps.map((step) => step.id)
4744
await deleteStep({
4845
variables: { input: { ids: idsToDelete } },

0 commit comments

Comments
 (0)