mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
use unique id for places that may have duplicates
This commit is contained in:
parent
6b0c57998b
commit
e6bd8deb0c
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user