Skip to content

Commit

Permalink
Merge pull request #1531 from jplag/bug-fix/broken-cluster-sorting
Browse files Browse the repository at this point in the history
Fix broken cluster sorting
  • Loading branch information
sebinside authored Feb 6, 2024
2 parents 9046f6e + 989d83b commit 480fcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report-viewer/src/components/ComparisonsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const props = defineProps({
})

const displayedComparisons = computed(() => {
const comparisons = getFilteredComparisons(getSortedComparisons(props.topComparisons))
const comparisons = getFilteredComparisons(getSortedComparisons(Array.from(props.topComparisons)))
let index = 1
comparisons.forEach((c) => {
c.id = index++
Expand Down Expand Up @@ -250,7 +250,7 @@ function getSortedComparisons(comparisons: ComparisonListElement[]) {
comparisons.forEach((c) => {
c.sortingPlace = index++
})
return props.topComparisons
return comparisons
}

function getClusterFor(clusterIndex: number) {
Expand Down

0 comments on commit 480fcca

Please sign in to comment.