Skip to content

Commit

Permalink
Merge pull request #1984 from jplag/report-viewer/match-click-bug
Browse files Browse the repository at this point in the history
Fix clicking on match opening wrong match
  • Loading branch information
tsaglam authored Sep 13, 2024
2 parents 610823f + 5660b72 commit e56bae4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const tokenCount = computed(() => {
* @param line Line to scroll to.
*/
function scrollTo(file: string, line: number) {
const fileIndex = Array.from(props.files).findIndex((f) => f.fileName === file)
const fileIndex = sortedFiles.value.findIndex((f) => f.fileName === file)
if (fileIndex !== -1) {
codePanels.value[fileIndex].expand()
nextTick(() => {
Expand Down

0 comments on commit e56bae4

Please sign in to comment.