mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) unable to set machine visibility to null
This commit is contained in:
parent
4336d13715
commit
c4fa240091
@ -293,7 +293,7 @@ export const PlanForm: React.FC<PlanFormProps> = ({ action, plan, onError, onSuc
|
||||
formState={formState}
|
||||
nullable
|
||||
id="machines_visibility"
|
||||
rules={{ min: { value: 7, message: t('app.admin.plan_form.visibility_minimum') } }}
|
||||
rules={{ validate: v => { return (v === null || v >= 7 || t('app.admin.plan_form.visibility_minimum') as string); } }}
|
||||
type="number"
|
||||
label={t('app.admin.plan_form.machines_visibility')} />
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user