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 suppressRowDrag
columnDefs={topSongsColumnDefs} columnDefs={topSongsColumnDefs}
enableCellChangeFlash={false} enableCellChangeFlash={false}
getRowId={(data) => data.data.id} getRowId={(data) => data.data.uniqueId}
rowData={topSongs} rowData={topSongs}
rowHeight={60} rowHeight={60}
rowSelection="multiple" rowSelection="multiple"

View File

@ -66,7 +66,7 @@ export const AlbumArtistDetailTopSongsListContent = ({
ref={tableRef} ref={tableRef}
shouldUpdateSong shouldUpdateSong
{...tableProps} {...tableProps}
getRowId={(data) => data.data.id} getRowId={(data) => data.data.uniqueId}
rowClassRules={rowClassRules} rowClassRules={rowClassRules}
rowData={data} rowData={data}
rowModelType="clientSide" rowModelType="clientSide"

View File

@ -70,7 +70,7 @@ export const SimilarSongsList = ({ count, fullScreen, song }: SimilarSongsListPr
song, song,
}} }}
deselectOnClickOutside={fullScreen} deselectOnClickOutside={fullScreen}
getRowId={(data) => data.data.id} getRowId={(data) => data.data.uniqueId}
rowBuffer={50} rowBuffer={50}
rowData={songQuery.data ?? []} rowData={songQuery.data ?? []}
rowHeight={tableConfig.rowHeight || 40} rowHeight={tableConfig.rowHeight || 40}