removed instrumentSelectionTrackId from projectStore, align the instrumentSelectionTrackId with selectedTrackId.

This commit is contained in:
Xiaohan-Tian
2025-08-12 18:14:25 -07:00
parent ee34115423
commit 7ada648d14
3 changed files with 17 additions and 30 deletions
+2 -2
View File
@@ -193,8 +193,8 @@ const TrackInfoItem: React.FC<TrackInfoItemProps> = ({
e.stopPropagation();
// Select this track as active when opening instrument panel
setSelectedTrack(track.getId().toString());
// Toggle global InstrumentSelection panel for this track
toggleInstrumentSelectionForTrack(track.getId().toString());
// Toggle global InstrumentSelection panel (it follows selectedTrackId)
toggleInstrumentSelectionForTrack();
};
// Handle settings button click