From e6bd8deb0c19b17186eac33581ee587009b5cc1f Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Wed, 4 Sep 2024 19:34:07 -0700 Subject: [PATCH] use unique id for places that may have duplicates --- .../features/artists/components/album-artist-detail-content.tsx | 2 +- .../components/album-artist-detail-top-songs-list-content.tsx | 2 +- .../features/similar-songs/components/similar-songs-list.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/features/artists/components/album-artist-detail-content.tsx b/src/renderer/features/artists/components/album-artist-detail-content.tsx index 8ad0cad39..34e77b994 100644 --- a/src/renderer/features/artists/components/album-artist-detail-content.tsx +++ b/src/renderer/features/artists/components/album-artist-detail-content.tsx @@ -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" diff --git a/src/renderer/features/artists/components/album-artist-detail-top-songs-list-content.tsx b/src/renderer/features/artists/components/album-artist-detail-top-songs-list-content.tsx index 63ade6d45..77f456edf 100644 --- a/src/renderer/features/artists/components/album-artist-detail-top-songs-list-content.tsx +++ b/src/renderer/features/artists/components/album-artist-detail-top-songs-list-content.tsx @@ -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" diff --git a/src/renderer/features/similar-songs/components/similar-songs-list.tsx b/src/renderer/features/similar-songs/components/similar-songs-list.tsx index 5089120d8..3e3021631 100644 --- a/src/renderer/features/similar-songs/components/similar-songs-list.tsx +++ b/src/renderer/features/similar-songs/components/similar-songs-list.tsx @@ -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}