mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 12:10:36 +03:00
Resolve TODO (workaround is necessary)
This commit is contained in:
parent
0833d87f94
commit
0ee000a8a0
@ -21,12 +21,8 @@ export const AlbumActions = ({
|
||||
const dispatch = useDispatch()
|
||||
const translate = useTranslate()
|
||||
|
||||
// TODO Not sure why data is accumulating tracks from previous plays... Needs investigation. For now, filter out
|
||||
// the unwanted tracks
|
||||
const filteredData = ids.reduce((acc, id) => {
|
||||
acc[id] = data[id]
|
||||
return acc
|
||||
}, {})
|
||||
// Filter out tracks from other albums (cached by ReactAdmin)
|
||||
const filteredData = ids.reduce((acc, id) => ({ ...acc, [id]: data[id] }), {})
|
||||
|
||||
return (
|
||||
<TopToolbar className={className} {...sanitizeListRestProps(rest)}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user