json_table icon indicating copy to clipboard operation
json_table copied to clipboard

Duplicate item and pagination issue in v1.4.0

Open alphalykos7 opened this issue 5 years ago • 2 comments

When 40 items with

paginationRowCount: 3

  1. the second last page has page count 4 and
  2. last item duplicated in the last page

Tested on the https://apgapg.github.io/json_table/#/customData

Edit : For any nx+1 items, where n is the row count, this pagination and duplication issue may be present from checking Live Demo where row count is 20 with 41 items.

alphalykos7 avatar May 29 '20 10:05 alphalykos7

This issue has been fixed on master branch.

The github pages were outdated. I have pushed latest changes. Please test again with your custim data.

apgapg avatar May 29 '20 12:05 apgapg

Nope. Check with say, [ { "name": "Ram1", "email": "[email protected]", "age": 23 }, { "name": "Shyam1", "email": "[email protected]", "age": 28 }, { "name": "John1", "email": "[email protected]", "age": 33 }, { "name": "Ram2", "email": "[email protected]", "age": 23 }, { "name": "Shyam2", "email": "[email protected]", "age": 28 }, { "name": "John2", "email": "[email protected]", "age": 33 }, { "name": "Ram3", "email": "[email protected]", "age": 23 }, { "name": "Shyam3", "email": "[email protected]", "age": 28 }, { "name": "John3", "email": "[email protected]", "age": 33 }, { "name": "Ram4", "email": "[email protected]", "age": 23 }, { "name": "Shyam4", "email": "[email protected]", "age": 28 }, { "name": "John4", "email": "[email protected]", "age": 33 }, { "name": "Ram5", "email": "[email protected]", "age": 23 }, { "name": "Shyam5", "email": "[email protected]", "age": 28 }, { "name": "John5", "email": "[email protected]", "age": 33 }, { "name": "Ram6", "email": "[email protected]", "age": 23 }, { "name": "Shyam6", "email": "[email protected]", "age": 28 }, { "name": "John6", "email": "[email protected]", "age": 33 }, { "name": "Ram7", "email": "[email protected]", "age": 23 }, { "name": "Shyam7", "email": "[email protected]", "age": 28 }, { "name": "John7", "email": "[email protected]", "age": 33 } ]

on https://apgapg.github.io/json_table/#/customData

Also, i'm finding this issue of pagination and duplication with my application as well.

alphalykos7 avatar Jun 01 '20 10:06 alphalykos7