mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-06-16 13:46:16 +02:00
Add initial form data to children of the ForisForm.
This commit is contained in:
@ -36,7 +36,7 @@ WiFiForm.defaultProps = {
|
||||
};
|
||||
|
||||
export default function WiFiForm({
|
||||
formData, formErrors, setFormValue, hasGuestNetwork, ...props
|
||||
formData, formErrors, setFormValue, hasGuestNetwork, disabled,
|
||||
}) {
|
||||
return formData.devices.map((device) => (
|
||||
<DeviceForm
|
||||
@ -45,8 +45,7 @@ export default function WiFiForm({
|
||||
formErrors={(formErrors || [])[device.id]}
|
||||
setFormValue={setFormValue}
|
||||
hasGuestNetwork={hasGuestNetwork}
|
||||
|
||||
{...props}
|
||||
disabled={disabled}
|
||||
/>
|
||||
));
|
||||
}
|
||||
|
Reference in New Issue
Block a user