From 1d88e0dd2851ae2ac948ca9d4d633c4fb6e700d8 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Tue, 17 Dec 2024 17:16:50 +0530 Subject: [PATCH] fix: Contact form breaks if name is empty (#10597) - Handles the case where the form and contact display page breaks if name is `null` --- .../components-next/Contacts/ContactsForm/ContactsForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue index a49236cb1..9d172cdf9 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsForm/ContactsForm.vue @@ -94,7 +94,7 @@ const prepareStateBasedOnProps = () => { phoneNumber, additionalAttributes = {}, } = props.contactData || {}; - const { firstName, lastName } = splitName(name); + const { firstName, lastName } = splitName(name || ''); const { description = '', companyName = '',