Skip to content

Reading from no data error #1660

Open
Open

Description

@guizombas

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

Activity

  1. guizombas commented on Aug 3, 2021

    @guizombas
    Author

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

  2. guizombas commented on Aug 4, 2021

    @guizombas
    Author

    Pull request made #1662

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions