From 5a84e6e78db9d2d6ba1aaf7a3d900fa6d1a038a6 Mon Sep 17 00:00:00 2001 From: Alexander Vogt Date: Sat, 8 Jul 2023 09:56:10 +0200 Subject: [PATCH] fix dynamic scroller --- report-viewer/src/components/ComparisonsTable.vue | 2 +- report-viewer/src/model/ComparisonListElement.ts | 4 ++-- report-viewer/src/model/factories/OverviewFactory.ts | 2 +- report-viewer/src/views/ClusterView.vue | 2 +- report-viewer/src/views/OverviewView.vue | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/report-viewer/src/components/ComparisonsTable.vue b/report-viewer/src/components/ComparisonsTable.vue index f481e5fe4..400b67943 100644 --- a/report-viewer/src/components/ComparisonsTable.vue +++ b/report-viewer/src/components/ComparisonsTable.vue @@ -38,7 +38,7 @@
b.averageSimilarity - a.averageSimilarity) .forEach((c) => { c.sortingPlace = counter++ - c.index = counter + c.id = counter }) for (const member of cluster.members) { diff --git a/report-viewer/src/views/OverviewView.vue b/report-viewer/src/views/OverviewView.vue index d7af467f9..5b0334fc8 100644 --- a/report-viewer/src/views/OverviewView.vue +++ b/report-viewer/src/views/OverviewView.vue @@ -134,7 +134,7 @@ const displayedComparisons = computed(() => { const comparisons = getFilteredComparisons(getSortedComparisons(overview.topComparisons)) let index = 1 comparisons.forEach((c) => { - c.index = index++ + c.id = index++ }) return comparisons })