Multi-line comments causing a silent error on hover of non-multiline comments in Overview tab
Summary
When hovering/scrolling over comments in Overview tab, sometimes it spits out an error. I think it has to do with non-multiline comments.
Seems to come from here:
<ul
class="notes"
@mouseenter="setSelectedCommentPositionHover(discussion.position.line_range)"
@mouseleave="setSelectedCommentPositionHover()"
>
Impact
It doesn't seem to be breaking anything other than throwing error messages on console.
Steps to reproduce
- Go here: !36446 (merged)
- Open browser console
- Leave a comment on a diff (single line)
- Go to the overview tab
Possible fixes
Just safeguard that mouseenter line.