diff --git a/frontend/src/Editor/Components/DropdownV2/CustomMenuList.jsx b/frontend/src/Editor/Components/DropdownV2/CustomMenuList.jsx index 949efa0ca8..6be9d65bc7 100644 --- a/frontend/src/Editor/Components/DropdownV2/CustomMenuList.jsx +++ b/frontend/src/Editor/Components/DropdownV2/CustomMenuList.jsx @@ -3,7 +3,6 @@ import { components } from 'react-select'; import SolidIcon from '@/_ui/Icon/SolidIcons'; import Loader from '@/ToolJetUI/Loader/Loader'; import './dropdownV2.scss'; -import { FormCheck } from 'react-bootstrap'; // eslint-disable-next-line import/no-unresolved import { useVirtualizer } from '@tanstack/react-virtual'; import cx from 'classnames'; @@ -12,20 +11,8 @@ const { MenuList } = components; // This Menulist also used in MultiselectV2 const CustomMenuList = ({ selectProps, ...props }) => { - const { - onInputChange, - onMenuInputFocus, - showAllOption, - isSelectAllSelected, - optionsLoadingState, - darkMode, - setSelected, - setIsSelectAllSelected, - fireEvent, - inputValue, - menuId, - showSearchInput, - } = selectProps; + const { onInputChange, onMenuInputFocus, optionsLoadingState, darkMode, inputValue, menuId, showSearchInput } = + selectProps; const parentRef = useRef(null); const virtualizer = useVirtualizer({ @@ -35,16 +22,6 @@ const CustomMenuList = ({ selectProps, ...props }) => { overscan: 15, }); - const handleSelectAll = (e) => { - e.target.checked && fireEvent(); - if (e.target.checked) { - setSelected(props.options); - } else { - setSelected([]); - } - setIsSelectAllSelected(e.target.checked); - }; - useEffect(() => { const searchInput = document.querySelector('.dropdown-multiselect-widget-search-box'); if (searchInput) { @@ -89,17 +66,6 @@ const CustomMenuList = ({ selectProps, ...props }) => { /> )} - {showAllOption && !optionsLoadingState && ( - - )} {!optionsLoadingState && (