mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +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}
|
formState={formState}
|
||||||
nullable
|
nullable
|
||||||
id="machines_visibility"
|
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"
|
type="number"
|
||||||
label={t('app.admin.plan_form.machines_visibility')} />
|
label={t('app.admin.plan_form.machines_visibility')} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user