From 3fafd615530fe1fe5584e367a3fb51417b89ad8f Mon Sep 17 00:00:00 2001 From: Sean O'Connor Date: Sat, 21 Mar 2026 20:35:54 -0400 Subject: [PATCH] Fix onClick handlers passing event object to handleNextStep The issue was that onClick={onNextStep} passes the click event as the first argument, making targetIndex an object instead of undefined. This caused handleNextStep to fall through to linear progression instead of properly checking branching logic. Fixed by wrapping with arrow function: onClick={() => onNextStep()} --- src/components/trials/wizard/panels/TrialControlPanel.tsx | 2 +- src/components/trials/wizard/panels/WizardExecutionPanel.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/trials/wizard/panels/TrialControlPanel.tsx b/src/components/trials/wizard/panels/TrialControlPanel.tsx index 06b7fe6..f15a6fd 100755 --- a/src/components/trials/wizard/panels/TrialControlPanel.tsx +++ b/src/components/trials/wizard/panels/TrialControlPanel.tsx @@ -188,7 +188,7 @@ export function TrialControlPanel({ Pause