From 299f74c1fb6bc6e5ea70f563edbf31101b2c12df Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Fri, 21 Jul 2023 20:44:39 +0530 Subject: [PATCH] name can be undefined for existing `name` type fields (#10298) --- packages/features/form-builder/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/features/form-builder/utils.ts b/packages/features/form-builder/utils.ts index c64053c822..db90fcd2ea 100644 --- a/packages/features/form-builder/utils.ts +++ b/packages/features/form-builder/utils.ts @@ -18,7 +18,7 @@ export const preprocessNameFieldDataWithVariant = ( export const getFullName = (name: string | { firstName: string; lastName?: string }) => { if (!name) { - return name; + return ""; } let nameString = ""; if (typeof name === "string") {