Skip to content

Commit

Permalink
use unique id for places that may have duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Sep 5, 2024
1 parent 6b0c579 commit e6bd8de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ export const AlbumArtistDetailContent = ({ background }: AlbumArtistDetailConten
suppressRowDrag
columnDefs={topSongsColumnDefs}
enableCellChangeFlash={false}
getRowId={(data) => data.data.id}
getRowId={(data) => data.data.uniqueId}
rowData={topSongs}
rowHeight={60}
rowSelection="multiple"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const AlbumArtistDetailTopSongsListContent = ({
ref={tableRef}
shouldUpdateSong
{...tableProps}
getRowId={(data) => data.data.id}
getRowId={(data) => data.data.uniqueId}
rowClassRules={rowClassRules}
rowData={data}
rowModelType="clientSide"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const SimilarSongsList = ({ count, fullScreen, song }: SimilarSongsListPr
song,
}}
deselectOnClickOutside={fullScreen}
getRowId={(data) => data.data.id}
getRowId={(data) => data.data.uniqueId}
rowBuffer={50}
rowData={songQuery.data ?? []}
rowHeight={tableConfig.rowHeight || 40}
Expand Down

0 comments on commit e6bd8de

Please sign in to comment.