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 useDelete doesn't delete record if its id is zero #9894

Merged
merged 2 commits into from
Jun 3, 2024

Conversation

adguernier
Copy link
Contributor

Problem

The useDelete hook does not delete the record if its id is zero. However, a record with 0 as identifier could exist.
Introduced by #9741 here

Solution

Allow deletion of record with id 0

@adguernier adguernier added the RFR Ready For Review label Jun 3, 2024
Co-authored-by: Francois Zaninotto <francois@marmelab.com>
@fzaninotto fzaninotto merged commit 084893c into next Jun 3, 2024
14 checks passed
@fzaninotto fzaninotto deleted the fix-delete-record-even-if-id-is-zero branch June 3, 2024 13:10
@fzaninotto fzaninotto added this to the 5.0.0 milestone Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants