Added max values on density and diameter inputs

This is to prevent accidentally putting in a too big value
This commit is contained in:
Donkie
2023-10-10 20:45:27 +02:00
parent 30d4019d7d
commit 3f5902516c
2 changed files with 4 additions and 0 deletions

View File

@@ -117,6 +117,7 @@ export const FilamentCreate: React.FC<IResourceComponentsProps & CreateOrClonePr
required: true,
type: "number",
min: 0,
max: 100,
},
]}
>
@@ -130,6 +131,7 @@ export const FilamentCreate: React.FC<IResourceComponentsProps & CreateOrClonePr
required: true,
type: "number",
min: 0,
max: 10,
},
]}
>

View File

@@ -139,6 +139,7 @@ export const FilamentEdit: React.FC<IResourceComponentsProps> = () => {
required: true,
type: "number",
min: 0,
max: 100,
},
]}
>
@@ -152,6 +153,7 @@ export const FilamentEdit: React.FC<IResourceComponentsProps> = () => {
required: true,
type: "number",
min: 0,
max: 10,
},
]}
>