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

Deleting a very last row throws "Cannot read properties of undefined (reading 'id')" #15231

Closed
theo-sim-dev opened this issue Nov 2, 2024 · 2 comments
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!

Comments

@theo-sim-dev
Copy link

theo-sim-dev commented Nov 2, 2024

Steps to reproduce

Link to live example: https://mui.com/x/react-data-grid/editing/#full-featured-crud (This error is reproducible in the official documentation demo)

Steps:

  1. Without entering the Edit mode, click the "delete" icon for all the rows to delete each row
  2. Once you delete the very last row, it throws the following error "TypeError: Cannot read properties of undefined (reading 'id')"

Current behavior

Deleting the very last row throws an exception.

Expected behavior

It should remove the last row without throwing any exception. It should show the data grid without any rows.

Context

No response

Your environment

No response

Search keywords: Deletion, Deleting a row, Actions type

@theo-sim-dev theo-sim-dev added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 2, 2024
@github-actions github-actions bot added the component: data grid This is the name of the generic UI component, not the React module! label Nov 2, 2024
@theo-sim-dev
Copy link
Author

#15207
It is fixed already. Closing this ticket.

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 2, 2024
Copy link

github-actions bot commented Nov 2, 2024

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@theo-sim-dev How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

1 participant