Skip to content

Commit

Permalink
fix: correct folder corpus count
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Sep 18, 2024
1 parent cee2c51 commit 369b371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

- Font is now a dependency, not checked-in files (and the font looks slightly different)

### Fixed

- In the corpus selector, an empty folder would add 1 to the parent folder's corpus count

## [9.7.1] - 2024-09-18

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/components/corpus_chooser/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const initCorpusStructure = (collection, initialCorpusSelection) => {
let totalSentences = 0

for (const folder of folders) {
totalCorporaIds = totalCorporaIds.concat(folder.corpora)
totalCorporaIds = totalCorporaIds.concat(folder.corpora || [])
folder.corpora = _.map(folder.corpora, (corpusId) => collection[corpusId])

const subFolders = []
Expand Down

0 comments on commit 369b371

Please sign in to comment.