Skip to content

The open alternative to Salesforce, designed for AI.

[NITPICK] call `closeDropdown` before `openModal` import spreadsheet (#10254)

Paul Rastoincd8e2403113c
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx
index a2fb4c57480..105f8442f6c 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownMenuContent.tsx
@@ -166,8 +166,8 @@ export const ObjectOptionsDropdownMenuContent = () => {
/>
<MenuItem
onClick={() => {
- openObjectRecordsSpreasheetImportDialog();
closeDropdown();
+ openObjectRecordsSpreasheetImportDialog();
}}
LeftIcon={IconFileImport}
text="Import"