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.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/animism-align/frontend/app/views/viewer/viewer.actions.js b/animism-align/frontend/app/views/viewer/viewer.actions.js
index 277cb21..fa63804 100644
--- a/animism-align/frontend/app/views/viewer/viewer.actions.js
+++ b/animism-align/frontend/app/views/viewer/viewer.actions.js
@@ -192,6 +192,9 @@ export const loadSections = () => dispatch => {
//
currentSection.fullscreenTimeline.unshift(initial_curtain_event)
}
+ if (currentSection.fullscreenTimeline.length && currentSection.fullscreenTimeline[0].type === 'curtain' && currentSection.media.length) {
+ currentSection.fullscreenTimeline[0].mediaItem = currentSection.media[0].media
+ }
currentSection.duration = currentSection.end_ts - currentSection.start_ts
currentSection.inlineParagraphCount = currentSection.paragraphs.filter(p => !p.hidden).length
// console.log(i, currentSection.inlineParagraphCount)