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

# Introduction
Just a nitpick resulting from
https://github.com/twentyhq/twenty/pull/10205
Avoid any possible race condition between competing event handlers by
closing dropdown before opening modal
This commit is contained in:
Paul Rastoin
2025-02-17 19:14:46 +01:00
committed by GitHub
parent cb3bd1353a
commit cd8e240311

View File

@ -166,8 +166,8 @@ export const ObjectOptionsDropdownMenuContent = () => {
/>
<MenuItem
onClick={() => {
openObjectRecordsSpreasheetImportDialog();
closeDropdown();
openObjectRecordsSpreasheetImportDialog();
}}
LeftIcon={IconFileImport}
text="Import"