mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
remove topic length
This commit is contained in:
@@ -94,18 +94,6 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
|||||||
onChange={handleValueChange('keep_alive')}
|
onChange={handleValueChange('keep_alive')}
|
||||||
margin="normal"
|
margin="normal"
|
||||||
/>
|
/>
|
||||||
<TextValidator
|
|
||||||
validators={['required', 'isNumber', 'minNumber:1', 'maxNumber:65535']}
|
|
||||||
errorMessages={['Max topic length is required', "Must be a number", "Must be greater than 0", "Max value is 65535"]}
|
|
||||||
name="max_topic_length"
|
|
||||||
label="Max Topic Length"
|
|
||||||
fullWidth
|
|
||||||
variant="outlined"
|
|
||||||
value={data.max_topic_length}
|
|
||||||
type="number"
|
|
||||||
onChange={handleValueChange('max_topic_length')}
|
|
||||||
margin="normal"
|
|
||||||
/>
|
|
||||||
<SelectValidator name="mqtt_qos"
|
<SelectValidator name="mqtt_qos"
|
||||||
label="QoS"
|
label="QoS"
|
||||||
value={data.mqtt_qos}
|
value={data.mqtt_qos}
|
||||||
|
|||||||
Reference in New Issue
Block a user