diff --git a/packages/twenty-front/src/modules/object-record/relation-picker/components/SingleRecordSelectMenuItemsWithSearch.tsx b/packages/twenty-front/src/modules/object-record/relation-picker/components/SingleRecordSelectMenuItemsWithSearch.tsx index 3952c88521c5..0066acad2b51 100644 --- a/packages/twenty-front/src/modules/object-record/relation-picker/components/SingleRecordSelectMenuItemsWithSearch.tsx +++ b/packages/twenty-front/src/modules/object-record/relation-picker/components/SingleRecordSelectMenuItemsWithSearch.tsx @@ -59,6 +59,9 @@ export const SingleRecordSelectMenuItemsWithSearch = ({ /> ); + const shouldDisplayDropdownMenuItems = + records.recordsToSelect.length + records.selectedRecords?.length > 0; + return ( <> {dropdownPlacement?.includes('end') && ( @@ -67,15 +70,11 @@ export const SingleRecordSelectMenuItemsWithSearch = ({ {createNewButton} {records.recordsToSelect.length > 0 && } - {records.recordsToSelect.length > 0 && ( + {shouldDisplayDropdownMenuItems && ( - {records.recordsToSelect.length > 0 && ( + {shouldDisplayDropdownMenuItems && (