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

Reading from no data error #1660

Open
guizombas opened this issue Aug 3, 2021 · 2 comments
Open

Reading from no data error #1660

guizombas opened this issue Aug 3, 2021 · 2 comments
Assignees

Comments

@guizombas
Copy link

Critical Error: When you are in the last page of the table with only one data and delete it using an API Request, the body wont find any data, but will try to read it anyways, throwing a error that isnt treated. When it happens, everything in the screen disapper. This error occurs in some other isolated cases too.

To Reproduce
Steps to reproduce the behavior:

  1. Using the toolkit provider and the pagination provider
  2. Create enough registers to fill one page of the table
  3. Create one more, go to the second page and then delete it
  4. See error

Screenshots
image
my table component

errorTable
Error print

@guizombas
Copy link
Author

guizombas commented Aug 3, 2021

I simplely put a try catch where the error treemap pointed and it worked, will make a pull request soon

@guizombas
Copy link
Author

Pull request made #1662

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

No branches or pull requests

2 participants