From c6ed62d43ca1df8041c10c74d4f699159948eb96 Mon Sep 17 00:00:00 2001 From: Alexander Vogt Date: Thu, 18 Apr 2024 17:39:56 +0200 Subject: [PATCH] fix click on match --- report-viewer/src/views/ComparisonView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report-viewer/src/views/ComparisonView.vue b/report-viewer/src/views/ComparisonView.vue index 58380799a..f436dc73b 100644 --- a/report-viewer/src/views/ComparisonView.vue +++ b/report-viewer/src/views/ComparisonView.vue @@ -148,7 +148,7 @@ const panel2: Ref = ref(null) * @param line (line number) */ function showMatchInFirst(match: Match) { - panel1.value?.scrollTo(match.firstFile, match.startInFirst) + panel1.value?.scrollTo(match.firstFile, match.startInFirst.line) } /** @@ -157,7 +157,7 @@ function showMatchInFirst(match: Match) { * @param line (line number) */ function showMatchInSecond(match: Match) { - panel2.value?.scrollTo(match.secondFile, match.startInSecond) + panel2.value?.scrollTo(match.secondFile, match.startInSecond.line) } /**