mirror of
				https://github.com/lingble/twenty.git
				synced 2025-11-04 06:37:56 +00:00 
			
		
		
		
	Fix remove no result menu from relation picker (#8485)
Fixes: #8455 1. Summary Removed redundant `No result` menu from relation picker 2. Screenshot https://github.com/user-attachments/assets/0bf457dc-57d6-4b38-8ef9-e985edd92396
This commit is contained in:
		@@ -2,7 +2,7 @@ import { isNonEmptyString } from '@sniptt/guards';
 | 
			
		||||
import { Fragment, useRef } from 'react';
 | 
			
		||||
import { useRecoilValue } from 'recoil';
 | 
			
		||||
import { Key } from 'ts-key-enum';
 | 
			
		||||
import { IconComponent, IconPlus, MenuItem, MenuItemSelect } from 'twenty-ui';
 | 
			
		||||
import { IconComponent, IconPlus, MenuItemSelect } from 'twenty-ui';
 | 
			
		||||
 | 
			
		||||
import { SelectableMenuItemSelect } from '@/object-record/relation-picker/components/SelectableMenuItemSelect';
 | 
			
		||||
import { SINGLE_ENTITY_SELECT_BASE_LIST } from '@/object-record/relation-picker/constants/SingleEntitySelectBaseList';
 | 
			
		||||
@@ -147,7 +147,6 @@ export const SingleEntitySelectMenuItems = ({
 | 
			
		||||
            !isAllEntitySelectShown &&
 | 
			
		||||
            !loading ? (
 | 
			
		||||
            <>
 | 
			
		||||
              <MenuItem text="No result" />
 | 
			
		||||
              {entitiesToSelect.length > 0 && <DropdownMenuSeparator />}
 | 
			
		||||
              <CreateNewButton
 | 
			
		||||
                key="add-new"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user