summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'animism-align/frontend/app/views/viewer/viewer.actions.js')
-rw-r--r--animism-align/frontend/app/views/viewer/viewer.actions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js
index 40a4718..836c677 100644
--- a/animism-align/frontend/app/views/viewer/viewer.actions.js
+++ b/animism-align/frontend/app/views/viewer/viewer.actions.js
@@ -54,7 +54,7 @@ export const loadSections = () => dispatch => {
// finish off the previous section.
if (currentSection) {
currentSection.mediaLabels = Object.keys(currentMediaLabels).join(', ')
- currentSection.paragraphs = buildParagraphs(sectionTextAnnotationOrder)
+ currentSection.paragraphs = buildParagraphs(sectionTextAnnotationOrder, currentSection.index)
currentSection.end_ts = currentSection.paragraphs[currentSection.paragraphs.length - 1].end_ts
}
// create a new section and reset state variables
@@ -109,7 +109,7 @@ export const loadSections = () => dispatch => {
// finished processing all annotations. finish off the last section.
if (currentSection) {
currentSection.mediaLabels = Object.keys(currentMediaLabels).join(', ')
- currentSection.paragraphs = buildParagraphs(sectionTextAnnotationOrder)
+ currentSection.paragraphs = buildParagraphs(sectionTextAnnotationOrder, currentSection.index)
currentSection.end_ts = timeline.duration
}