Skip to content

Commit

Permalink
slots per trial can be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mapmeld committed Dec 14, 2023
1 parent 2c8bc5a commit d13f070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webui/react/src/components/HyperparameterSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ const HyperparameterSearchModal = ({ closeModal, experiment, trial }: Props): JS
initialValue={experiment.configRaw?.resources?.slots_per_trial || 1}
label="Slots per trial"
name="slots_per_trial"
rules={[{ max: maxSlots, min: 1, required: true, type: 'number' }]}
rules={[{ max: maxSlots, min: 0, required: true, type: 'number' }]}
validateStatus={
formValues?.slots_per_trial > maxSlots || formValues?.slots_per_trial < 1
? 'error'
Expand Down

0 comments on commit d13f070

Please sign in to comment.