From 8e86e941257ddfaff3b79570c9f80445566c2b77 Mon Sep 17 00:00:00 2001 From: Jeel <114864715+J3E1@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:50:39 +0530 Subject: [PATCH] Fix: Remove Deleted filter not reflecting issue (#7676) ## PR Summary This Pull request fixes #7626 Adding Deleted filter from option will add filter label as "Deleted" in tableFiltersState, But on click of "Remove Deleted filter" "Deleted at" is used for finding tableFilter id, which results in tableFilter id as undefined. --- .../empty-state/components/RecordTableEmptyStateSoftDelete.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/RecordTableEmptyStateSoftDelete.tsx b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/RecordTableEmptyStateSoftDelete.tsx index 71eb045abda2..a025916be6ac 100644 --- a/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/RecordTableEmptyStateSoftDelete.tsx +++ b/packages/twenty-front/src/modules/object-record/record-table/empty-state/components/RecordTableEmptyStateSoftDelete.tsx @@ -28,7 +28,7 @@ export const RecordTableEmptyStateSoftDelete = () => { deleteCombinedViewFilter( tableFilters.find( (filter) => - filter.definition.label === 'Deleted at' && + filter.definition.label === 'Deleted' && filter.operand === 'isNotEmpty', )?.id ?? '', );