Skip to content

Commit

Permalink
fix error vis bug causing crashes when jumping with segment select menu
Browse files Browse the repository at this point in the history
  • Loading branch information
musicog committed Mar 1, 2021
1 parent 6d41614 commit a281c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/errorRibbonVis.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default class ErrorRibbonVis extends Component {
.map( (instant) => this.props.noteElementsForInstant(instant) ).flat()
.map( (noteElement) => this.props.convertCoords(noteElement).x )
}
if(closestSuccessorScoretime) {
if(closestSuccessorScoretime && closestSuccessorScoretime.qstamp in this.props.instantsByScoretime[tl]) {
successorNoteElementXPositions = this.props.instantsByScoretime[tl][closestSuccessorScoretime.qstamp]
.map( (instant) => this.props.noteElementsForInstant(instant) ).flat()
.map( (noteElement) => this.props.convertCoords(noteElement).x )
Expand Down

0 comments on commit a281c64

Please sign in to comment.