From 786d4ecd3902664c54864dea632c7f66d52b0c1c Mon Sep 17 00:00:00 2001 From: Casey Date: Tue, 27 Jan 2026 12:45:01 -0600 Subject: [PATCH] fix bug on client create redirect --- frontend/src/components/pages/Client.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/pages/Client.vue b/frontend/src/components/pages/Client.vue index a53fb20..82c7765 100644 --- a/frontend/src/components/pages/Client.vue +++ b/frontend/src/components/pages/Client.vue @@ -297,8 +297,9 @@ const handleSubmit = async () => { const createdClient = await Api.createClient(client.value); console.log("Created client:", createdClient); notificationStore.addSuccess("Client created successfully!"); + stripped_name = createdClient.customerName.split("-#-")[0].trim(); // Navigate to the created client - router.push('/client?client=' + encodeURIComponent(createdClient.name)); + router.push('/client?client=' + encodeURIComponent(stripped_name)); } else { // TODO: Implement save logic notificationStore.addSuccess("Changes saved successfully!");