From 1c7bcf6cb89e57128206daaced676845d91964e5 Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Wed, 9 Oct 2024 17:43:27 +0200 Subject: [PATCH] Remove unused call --- .../ui/layout/show-page/components/ShowPageMoreButton.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageMoreButton.tsx b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageMoreButton.tsx index 3413c0f4d085f..30efbdf71fa25 100644 --- a/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageMoreButton.tsx +++ b/packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageMoreButton.tsx @@ -11,7 +11,6 @@ import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown'; import { MenuItem } from '@/ui/navigation/menu-item/components/MenuItem'; import { navigationMemorizedUrlState } from '@/ui/navigation/states/navigationMemorizedUrlState'; -import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useDestroyManyRecords } from '@/object-record/hooks/useDestroyManyRecords'; import { useRestoreManyRecords } from '@/object-record/hooks/useRestoreManyRecords'; import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState'; @@ -42,9 +41,7 @@ export const ShowPageMoreButton = ({ const { restoreManyRecords } = useRestoreManyRecords({ objectNameSingular, }); - const { objectMetadataItem } = useObjectMetadataItem({ - objectNameSingular, - }); + const handleDelete = () => { deleteOneRecord(recordId); closeDropdown();