Skip to content

Commit

Permalink
fix: stats download broken since commit 3819500
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Dec 4, 2024
1 parent 2a23143 commit 4bd05d4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/scripts/components/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,13 +549,9 @@ angular.module("korpApp").component("statistics", {

let output = []
for (var row of $ctrl.data) {
let outputRow = $ctrl.searchParams.reduceVals.map((reduceVal) => {
if (row.rowId === 0) {
return "Σ"
} else {
return row[reduceVal].join(",")
}
})
let outputRow = $ctrl.searchParams.reduceVals.map((reduceVal) =>
row.rowId === 0 ? "Σ" : row.statsValues.flatMap((type) => type[reduceVal][0])
)
outputRow.push(fmt(row.total[selVal]))
for (let corp of $ctrl.searchParams.corpora) {
val = row.count[corp][selVal]
Expand Down

0 comments on commit 4bd05d4

Please sign in to comment.