diff --git a/src/components/event-list-panel/GlobalEventListTab.tsx b/src/components/event-list-panel/GlobalEventListTab.tsx index 2d6d067..445f54b 100644 --- a/src/components/event-list-panel/GlobalEventListTab.tsx +++ b/src/components/event-list-panel/GlobalEventListTab.tsx @@ -186,48 +186,48 @@ const GlobalEventListTab: React.FC = ({ const markerRows = useMemo(() => ( showMarkers && markerTrack ? markerTrack.getRegions().filter((region): region is KGMarkerRegion => region instanceof KGMarkerRegion).map(region => ({ - id: region.getId(), - type: 'marker', - region, - absoluteStartBeat: region.getStartFromBeat(), - durationBeats: region.getLength(), - })) + id: region.getId(), + type: 'marker', + region, + absoluteStartBeat: region.getStartFromBeat(), + durationBeats: region.getLength(), + })) : [] ), [globalTracks, markerTrack, showMarkers]); const tempoRows = useMemo(() => ( showTempo && tempoTrack ? getSortedTempoRegions(tempoTrack, timeSignature.numerator).map(region => ({ - id: region.getId(), - type: 'tempo', - region, - absoluteStartBeat: region.getStartFromBeat(), - durationBeats: region.getLength(), - })) + id: region.getId(), + type: 'tempo', + region, + absoluteStartBeat: region.getStartFromBeat(), + durationBeats: region.getLength(), + })) : [] ), [globalTracks, showTempo, tempoTrack, timeSignature.numerator]); const keySignatureRows = useMemo(() => ( showKeySignature && signatureTrack ? getSortedKeySignatureRegions(signatureTrack, timeSignature.numerator).map(region => ({ - id: region.getId(), - type: 'key-signature', - region, - absoluteStartBeat: region.getStartFromBeat(), - durationBeats: region.getLength(), - })) + id: region.getId(), + type: 'key-signature', + region, + absoluteStartBeat: region.getStartFromBeat(), + durationBeats: region.getLength(), + })) : [] ), [globalTracks, showKeySignature, signatureTrack, timeSignature.numerator]); const chordRows = useMemo(() => ( showChords && chordTrack ? chordTrack.getRegions().filter((region): region is KGChordRegion => region instanceof KGChordRegion).map(region => ({ - id: region.getId(), - type: 'chord', - region, - absoluteStartBeat: region.getStartFromBeat(), - durationBeats: region.getLength(), - })) + id: region.getId(), + type: 'chord', + region, + absoluteStartBeat: region.getStartFromBeat(), + durationBeats: region.getLength(), + })) : [] ), [chordTrack, globalTracks, showChords]); @@ -755,7 +755,7 @@ const GlobalEventListTab: React.FC = ({
- +