Incorrect variable, fixes multi-select then drag deselecting all but the current track

This commit is contained in:
James Barnsley
2021-10-02 13:59:27 +13:00
parent 08db93a885
commit 09b02fc751

View File

@ -102,7 +102,7 @@ const TrackList = ({
// Dragging a non-selected track. We need to deselect everything
// else and select only this track
if (!nextSelectedTracks.includes(track_key)) {
if (!selected_tracks.includes(track_key)) {
setSelectedTracks([track_key]);
nextSelectedTracks = digestTracksKeys([track_key]);
} else {