Skip to content

Commit 692bd58

Browse files
committed
content: generateCommentaryIndexPage: handle entries individually
1 parent daf6f5b commit 692bd58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/content/dependencies/generateCommentaryIndexPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ export default {
1919
query.albums.map(album =>
2020
[album, ...album.tracks]
2121
.filter(({commentary}) => commentary)
22-
.map(({commentary}) => commentary));
22+
.flatMap(({commentary}) => commentary));
2323

2424
query.wordCounts =
2525
entries.map(entries =>
2626
accumulateSum(
2727
entries,
28-
entry => entry.split(' ').length));
28+
entry => entry.body.split(' ').length));
2929

3030
query.entryCounts =
3131
entries.map(entries => entries.length);

0 commit comments

Comments
 (0)