Skip to content

Commit 3670b16

Browse files
fix: conditionally disable onNext callback based on step value (#4368)
1 parent a6da45d commit 3670b16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/app/schedules/ScheduleOverrideDialog.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function ScheduleOverrideDialog(props) {
147147
})
148148
}
149149
disableSubmit={step === 0}
150-
onNext={onNext}
150+
onNext={step < 1 ? onNext : undefined}
151151
/>
152152
)
153153
}

0 commit comments

Comments
 (0)