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.
This commit is contained in:
@ -28,7 +28,7 @@ export const RecordTableEmptyStateSoftDelete = () => {
|
||||
deleteCombinedViewFilter(
|
||||
tableFilters.find(
|
||||
(filter) =>
|
||||
filter.definition.label === 'Deleted at' &&
|
||||
filter.definition.label === 'Deleted' &&
|
||||
filter.operand === 'isNotEmpty',
|
||||
)?.id ?? '',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user