We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef96ea commit 657adaeCopy full SHA for 657adae
1 file changed
client/src/views/CreateLobbyView.vue
@@ -175,7 +175,7 @@ const handleSubmit = async () => {
175
isLoading.value = true;
176
177
try {
178
- await createLobby({
+ const response = await createLobby({
179
name: form.name,
180
description: form.description,
181
maxCollaborators: form.maxCollaborators,
@@ -184,8 +184,8 @@ const handleSubmit = async () => {
184
height: form.height
185
});
186
187
- // Redirect to the new lobby or the lobby list
188
- router.push('/lobbies');
+ // Redirect to the new lobby
+ router.push(`/play/${response.data._id}`);
189
} catch (err: any) {
190
console.error("Create Lobby Error:", err);
191
error.value = err.response?.data?.error || "Failed to create canvas. Try a different name.";
0 commit comments