use unique id for places that may have duplicates

This commit is contained in:
Kendall Garner 2024-09-04 19:34:07 -07:00
parent 6b0c57998b
commit e6bd8deb0c
No known key found for this signature in database
GPG Key ID: 18D2767419676C87
3 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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}