hotfix for the offset check when grain cables are using a mode
This commit is contained in:
parent
46881f6656
commit
4659ba3751
1 changed files with 1 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ export default function ComponentForm(props: Props) {
|
||||||
let minimum = min ?? 0;
|
let minimum = min ?? 0;
|
||||||
let maximum = max ?? 100;
|
let maximum = max ?? 100;
|
||||||
if (compMode && form.component.settings.calibrate) {
|
if (compMode && form.component.settings.calibrate) {
|
||||||
return Number(form.offset) <= maximum && Number(form.offset) > minimum;
|
return Number(form.offset) <= maximum && Number(form.offset) >= minimum;
|
||||||
}
|
}
|
||||||
return !isNaN(Number(form.offset));
|
return !isNaN(Number(form.offset));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue