From cac00e93b8c88d7c971363f5019adc2256cc9e49 Mon Sep 17 00:00:00 2001 From: nitin <142569587+ehconitin@users.noreply.github.com> Date: Sat, 12 Oct 2024 00:54:25 +0530 Subject: [PATCH] minor fix - dropdown doesnt close onClick in configure step (#7587) --- .../SettingsDataModelNewFieldBreadcrumbDropDown.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelNewFieldBreadcrumbDropDown.tsx b/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelNewFieldBreadcrumbDropDown.tsx index 18624a59fb34..ce41c5f56301 100644 --- a/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelNewFieldBreadcrumbDropDown.tsx +++ b/packages/twenty-front/src/modules/settings/data-model/components/SettingsDataModelNewFieldBreadcrumbDropDown.tsx @@ -82,12 +82,11 @@ export const SettingsDataModelNewFieldBreadcrumbDropDown = () => { navigate( `/settings/objects/${objectSlug}/new-field/configure?fieldType=${fieldType}`, ); - return; + } else { + navigate( + `/settings/objects/${objectSlug}/new-field/select${fieldType ? `?fieldType=${fieldType}` : ''}`, + ); } - - navigate( - `/settings/objects/${objectSlug}/new-field/select${fieldType ? `?fieldType=${fieldType}` : ''}`, - ); closeDropdown(); };