Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[battery_manager] React warning messages in console #8724

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/battery_manager/jsx/batteryManagerForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class BatteryManagerForm extends Component {
name="ageMinDays"
label="Minimum age (days)"
onUserInput={setTest}
min="0"
max="99999"
min={0}
max={99999}
required={true}
value={test.ageMinDays}
errorMessage={errors.ageMinDays}
Expand All @@ -78,8 +78,8 @@ class BatteryManagerForm extends Component {
name="ageMaxDays"
label="Maximum age (days)"
onUserInput={setTest}
min="0"
max="99999"
min={0}
max={99999}
required={true}
value={test.ageMaxDays}
errorMessage={errors.ageMaxDays}
Expand Down Expand Up @@ -134,8 +134,8 @@ class BatteryManagerForm extends Component {
label="Instrument Order"
onUserInput={setTest}
required={false}
min="0"
max="127" // max value allowed by default column type of instr_order
min={0}
max={127} // max value allowed by default column type of instr_order
value={test.instrumentOrder}
/>
<ButtonElement
Expand Down