Browse Source
Fix Range Test default and saved values (#113)
* defaultValues to rangeTest
* found some more while I was there
pull/116/head
Ben Lipsey
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
-
src/components/PageComponents/ModuleConfig/CannedMessage.tsx
-
src/components/PageComponents/ModuleConfig/RangeTest.tsx
-
src/components/PageComponents/ModuleConfig/StoreForward.tsx
|
|
|
@ -20,7 +20,7 @@ export const CannedMessage = (): JSX.Element => { |
|
|
|
return ( |
|
|
|
<DynamicForm<CannedMessageValidation> |
|
|
|
onSubmit={onSubmit} |
|
|
|
defaultValues={moduleConfig.mqtt} |
|
|
|
defaultValues={moduleConfig.cannedMessage} |
|
|
|
fieldGroups={[ |
|
|
|
{ |
|
|
|
label: "Canned Message Settings", |
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ export const RangeTest = (): JSX.Element => { |
|
|
|
return ( |
|
|
|
<DynamicForm<RangeTestValidation> |
|
|
|
onSubmit={onSubmit} |
|
|
|
defaultValues={moduleConfig.mqtt} |
|
|
|
defaultValues={moduleConfig.rangeTest} |
|
|
|
fieldGroups={[ |
|
|
|
{ |
|
|
|
label: "Range Test Settings", |
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ export const StoreForward = (): JSX.Element => { |
|
|
|
return ( |
|
|
|
<DynamicForm<StoreForwardValidation> |
|
|
|
onSubmit={onSubmit} |
|
|
|
defaultValues={moduleConfig.mqtt} |
|
|
|
defaultValues={moduleConfig.storeForward} |
|
|
|
fieldGroups={[ |
|
|
|
{ |
|
|
|
label: "Store & Forward Settings", |
|
|
|
|