Fix form validation
This commit is contained in:
@@ -118,7 +118,7 @@ export const LoRa = (): JSX.Element => {
|
|||||||
{...register("txPower", { valueAsNumber: true })}
|
{...register("txPower", { valueAsNumber: true })}
|
||||||
/>
|
/>
|
||||||
<TextInputField
|
<TextInputField
|
||||||
label="Hop Count"
|
label="Hop Limit"
|
||||||
description="This is a description."
|
description="This is a description."
|
||||||
hint="Hops"
|
hint="Hops"
|
||||||
type="number"
|
type="number"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
|
|||||||
bandwidth: number;
|
bandwidth: number;
|
||||||
|
|
||||||
@IsInt()
|
@IsInt()
|
||||||
// @Min(7)
|
@Min(7)
|
||||||
@Max(12)
|
@Max(12)
|
||||||
spreadFactor: number;
|
spreadFactor: number;
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ export class LoRaValidation implements Protobuf.Config_LoRaConfig {
|
|||||||
region: Protobuf.Config_LoRaConfig_RegionCode;
|
region: Protobuf.Config_LoRaConfig_RegionCode;
|
||||||
|
|
||||||
@IsInt()
|
@IsInt()
|
||||||
@Min(0)
|
@Min(1)
|
||||||
@Max(7)
|
@Max(7)
|
||||||
hopLimit: number;
|
hopLimit: number;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user