mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 04:37:56 +00:00 
			
		
		
		
	fix: object activate dropdown (#8438)
Fixes: #8436 Fixes: #8435 & other duplicate ```DropdownMenu```
This commit is contained in:
		| @@ -1,5 +1,4 @@ | ||||
| import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; | ||||
| import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; | ||||
| import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; | ||||
| import { StyledDropdownButtonContainer } from '@/ui/layout/dropdown/components/StyledDropdownButtonContainer'; | ||||
| import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown'; | ||||
| @@ -71,22 +70,20 @@ const SearchVariablesDropdown = ({ | ||||
|         </StyledDropdownVariableButtonContainer> | ||||
|       } | ||||
|       dropdownComponents={ | ||||
|         <DropdownMenu> | ||||
|           <DropdownMenuItemsContainer> | ||||
|             {selectedStep ? ( | ||||
|               <SearchVariablesDropdownStepSubItem | ||||
|                 step={selectedStep} | ||||
|                 onSelect={handleSubItemSelect} | ||||
|                 onBack={handleBack} | ||||
|               /> | ||||
|             ) : ( | ||||
|               <SearchVariablesDropdownStepItem | ||||
|                 steps={availableVariablesInWorkflowStep} | ||||
|                 onSelect={handleStepSelect} | ||||
|               /> | ||||
|             )} | ||||
|           </DropdownMenuItemsContainer> | ||||
|         </DropdownMenu> | ||||
|         <DropdownMenuItemsContainer> | ||||
|           {selectedStep ? ( | ||||
|             <SearchVariablesDropdownStepSubItem | ||||
|               step={selectedStep} | ||||
|               onSelect={handleSubItemSelect} | ||||
|               onBack={handleBack} | ||||
|             /> | ||||
|           ) : ( | ||||
|             <SearchVariablesDropdownStepItem | ||||
|               steps={availableVariablesInWorkflowStep} | ||||
|               onSelect={handleStepSelect} | ||||
|             /> | ||||
|           )} | ||||
|         </DropdownMenuItemsContainer> | ||||
|       } | ||||
|       dropdownPlacement="bottom-end" | ||||
|       dropdownOffset={{ x: 0, y: 4 }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Harsh Singh
					Harsh Singh