summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/viewer.actions.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-27 23:09:08 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-27 23:09:08 +0200
commit443f0a465c720c9e70a124671872c74bc7e9bbd4 (patch)
tree6487601fe40c2b388d74792daf8934444fef1517 /animism-align/frontend/app/views/viewer/viewer.actions.js
parentb54da8c0e7e062cee8406d642e4cc7170d279753 (diff)
update section index corretly
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
}