Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Remove Deleted filter not reflecting issue #7676

Conversation

J3E1
Copy link
Contributor

@J3E1 J3E1 commented Oct 14, 2024

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.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR addresses an issue with the 'Remove Deleted filter' functionality in the RecordTableEmptyStateSoftDelete component, ensuring the correct filter is identified and removed when the button is clicked.

  • Updated filter label from 'Deleted at' to 'Deleted' in packages/twenty-front/src/modules/object-record/record-table/empty-state/components/RecordTableEmptyStateSoftDelete.tsx
  • Fixed the issue where clicking 'Remove Deleted filter' didn't remove the filter as expected
  • Ensures consistency between the filter added from options and the one removed by the button
  • Resolves the problem reported in issue Remove Deleted filter not reflecting #7626, improving user experience when managing deleted records

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

@bosiraphael bosiraphael self-assigned this Oct 16, 2024
Copy link
Contributor

@bosiraphael bosiraphael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for contributing @J3E1 :)

@bosiraphael bosiraphael merged commit 8e86e94 into twentyhq:main Oct 16, 2024
3 checks passed
@J3E1 J3E1 deleted the fix/remove-deleted-filter-filter-not-reflecting-fix branch October 16, 2024 17:32
@J3E1
Copy link
Contributor Author

J3E1 commented Oct 16, 2024

Thank you for merging :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Deleted filter not reflecting
2 participants