Fix Range Test default and saved values (#113)

* defaultValues to rangeTest

* found some more while I was there
This commit is contained in:
Ben Lipsey
2023-07-09 13:12:59 +10:00
committed by GitHub
parent 9e8c4832c8
commit a65bc37be5
3 changed files with 3 additions and 3 deletions
@@ -20,7 +20,7 @@ export const CannedMessage = (): JSX.Element => {
return ( return (
<DynamicForm<CannedMessageValidation> <DynamicForm<CannedMessageValidation>
onSubmit={onSubmit} onSubmit={onSubmit}
defaultValues={moduleConfig.mqtt} defaultValues={moduleConfig.cannedMessage}
fieldGroups={[ fieldGroups={[
{ {
label: "Canned Message Settings", label: "Canned Message Settings",
@@ -20,7 +20,7 @@ export const RangeTest = (): JSX.Element => {
return ( return (
<DynamicForm<RangeTestValidation> <DynamicForm<RangeTestValidation>
onSubmit={onSubmit} onSubmit={onSubmit}
defaultValues={moduleConfig.mqtt} defaultValues={moduleConfig.rangeTest}
fieldGroups={[ fieldGroups={[
{ {
label: "Range Test Settings", label: "Range Test Settings",
@@ -20,7 +20,7 @@ export const StoreForward = (): JSX.Element => {
return ( return (
<DynamicForm<StoreForwardValidation> <DynamicForm<StoreForwardValidation>
onSubmit={onSubmit} onSubmit={onSubmit}
defaultValues={moduleConfig.mqtt} defaultValues={moduleConfig.storeForward}
fieldGroups={[ fieldGroups={[
{ {
label: "Store & Forward Settings", label: "Store & Forward Settings",