Skip to content

Commit

Permalink
Fix Leaderboards Datatable unique key (#85)
Browse files Browse the repository at this point in the history
* Fix Check the render method of `Nr`

* Fix DataTable key props
  • Loading branch information
komnb14 authored Mar 6, 2023
1 parent af9f80d commit 4ca1e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/player-card/player-standings-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const PlayerStandingsTable = ({
verticalSpacing="xs"
// minHeight={300}
// provide data
idAccessor={"type"}
records={dataForTable}
// define columns
columns={[
Expand Down
1 change: 1 addition & 0 deletions pages/leaderboards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const Leaderboards = ({
verticalSpacing="sm"
minHeight={300}
// provide data
idAccessor={"statgroup_id"}
records={leaderBoardData || []}
page={calculatePageNumber(start, RECORD_PER_PAGE)}
totalRecords={totalRecords}
Expand Down

0 comments on commit 4ca1e44

Please sign in to comment.