Skip to content

Commit

Permalink
Fix remove no result menu from relation picker (twentyhq#8485)
Browse files Browse the repository at this point in the history
Fixes: twentyhq#8455 

1. Summary
Removed redundant `No result` menu from relation picker

2. Screenshot


https://github.com/user-attachments/assets/0bf457dc-57d6-4b38-8ef9-e985edd92396
  • Loading branch information
khuddite authored Nov 15, 2024
1 parent 9e7b90a commit ac93d35
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -147,7 +147,6 @@ export const SingleEntitySelectMenuItems = ({
!isAllEntitySelectShown &&
!loading ? (
<>
<MenuItem text="No result" />
{entitiesToSelect.length > 0 && <DropdownMenuSeparator />}
<CreateNewButton
key="add-new"
Expand Down

0 comments on commit ac93d35

Please sign in to comment.