Skip to content

Commit a281c64

Browse files
committed
fix error vis bug causing crashes when jumping with segment select menu
1 parent 6d41614 commit a281c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/errorRibbonVis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export default class ErrorRibbonVis extends Component {
218218
.map( (instant) => this.props.noteElementsForInstant(instant) ).flat()
219219
.map( (noteElement) => this.props.convertCoords(noteElement).x )
220220
}
221-
if(closestSuccessorScoretime) {
221+
if(closestSuccessorScoretime && closestSuccessorScoretime.qstamp in this.props.instantsByScoretime[tl]) {
222222
successorNoteElementXPositions = this.props.instantsByScoretime[tl][closestSuccessorScoretime.qstamp]
223223
.map( (instant) => this.props.noteElementsForInstant(instant) ).flat()
224224
.map( (noteElement) => this.props.convertCoords(noteElement).x )

0 commit comments

Comments
 (0)