Skip to content

Commit

Permalink
When no desiredValue, pre load with any reported Value
Browse files Browse the repository at this point in the history
  • Loading branch information
montgomp committed Nov 5, 2021
1 parent bfe43b6 commit f982a59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const DeviceSettingsPerInterfacePerSetting: React.FC<DeviceSettingDataPro
return (
<DataForm
buttonText={ResourceKeys.deviceSettings.command.submit}
formData={desiredValue}
formData={desiredValue !== undefined ? desiredValue : reportedSection?.value}
settingSchema={settingSchema}
handleSave={onSubmit}
schema={getSchemaType(settingModelDefinition.schema)}
Expand Down

0 comments on commit f982a59

Please sign in to comment.