File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
site/src/pages/CreateWorkspacePage Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
8000
Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ const CreateWorkspacePageExperimental: FC = () => {
91
91
const autofillParameters = getAutofillParameters ( searchParams ) ;
92
92
93
93
const sendMessage = useCallback ( ( formValues : Record < string , string > ) => {
94
- const request : DynamicParametersRequest = {
95
- id : wsResponseId . current + 1 ,
96
- inputs : formValues ,
97
- } ;
98
- if ( ws . current && ws . current . readyState === WebSocket . OPEN ) {
99
- ws . current . send ( JSON . stringify ( request ) ) ;
100
- wsResponseId . current = wsResponseId . current + 1 ;
101
- }
94
+ const request : DynamicParametersRequest = {
95
+ id : wsResponseId . current + 1 ,
96
+ inputs : formValues ,
97
+ } ;
98
+ if ( ws . current && ws . current . readyState === WebSocket . OPEN ) {
99
+ ws . current . send ( JSON . stringify ( request ) ) ;
100
+ wsResponseId . current = wsResponseId . current + 1 ;
101
+ }
102
102
} , [ ] ) ;
103
103
104
104
// On sends all initial parameter values to the websocket
You can’t perform that action at this time.
0 commit comments