From 867e8ecc9f1453c63d6e6f26d339a5135c672d1f Mon Sep 17 00:00:00 2001 From: Jethary Date: Tue, 27 Feb 2024 17:25:02 -0500 Subject: [PATCH] add id to form --- .../RobotSettings/ConnectNetwork/ConnectModal/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/index.tsx b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/index.tsx index c0762a46ccd..c9f726dcb76 100644 --- a/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/index.tsx +++ b/app/src/organisms/Devices/RobotSettings/ConnectNetwork/ConnectModal/index.tsx @@ -32,6 +32,7 @@ interface ConnectModalComponentProps extends ConnectModalProps { isValid: boolean values: ConnectFormValues control: Control + id: string } export const ConnectModal = (props: ConnectModalProps): JSX.Element => { @@ -60,14 +61,16 @@ export const ConnectModal = (props: ConnectModalProps): JSX.Element => { }) const values = getValues() + const id = `ConnectForm__${props.robotName}` return ( -
+ ) @@ -84,10 +87,10 @@ export const ConnectModalComponent = ( onCancel, values, isValid, + id, control, } = props - const id = `ConnectForm__${robotName}` const fields = getConnectFormFields( network, robotName,