fix: multi-ids duplicate only returned changes for drag-start track

The updateActiveTracks return statement was:
  return t.id === trackId ? updated : t;
This discarded duplicate items that belong to other tracks.
Fix: always return updated{ sections, midiItems, clips }
for EVERY track in the map (already sliced from originals,
so unchanged tracks are no-ops).
This commit is contained in:
2026-07-27 22:26:55 +07:00
parent 0992879b49
commit b84507bd64
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -11741,8 +11741,7 @@ const App = () => {
}
}
});
var changed = t.sections && t.sections.length !== updatedSections.length;
return t.id === trackId ? { ...t, sections: updatedSections, midiItems: updatedMidi, clips: updatedClips } : t;
return { ...t, sections: updatedSections, midiItems: updatedMidi, clips: updatedClips };
});
});
setDraggedSectionItem({ trackId, itemType, itemId, clickOffset, multiIds: newOriginals });