Skip to content

Commit 7cf2c96

Browse files
committed
fix: url path
1 parent 2a39ae2 commit 7cf2c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/DynamicForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function DynamicForm() {
8585
}, [testdata]);
8686

8787
const planPath = "";
88-
const wsUrl = `ws://${serverAddress}/ws/${encodeURIComponent(testdata)}${planPath ? `?plan=${encodeURIComponent(planPath)}` : ''}${user ? `&user=${encodeURIComponent(user)}` : ''}`;
88+
const wsUrl = `ws://${serverAddress}/ws/${encodeURIComponent(testdata)}${`?plan=${encodeURIComponent(planPath)}`}${user ? `&user=${encodeURIComponent(user)}` : ''}`;
8989

9090
const { message: serverResponse, sendMessage, connectionStatus } = useWebSocket<Response>(wsUrl);
9191

0 commit comments

Comments
 (0)