summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-24 22:26:07 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-24 22:26:07 +0200
commitf2d612de04da968a74efe94d0b448b465869d6e0 (patch)
tree4594409298eb1a0453a5714f539ee0ee8696efad /animism-align/frontend/app/views/viewer/sections/viewer.sections.js
parent0f4d8d0d9601f6f2794c28e67ef8b0d4aad9fc86 (diff)
navigate to media
Diffstat (limited to 'animism-align/frontend/app/views/viewer/sections/viewer.sections.js')
-rw-r--r--animism-align/frontend/app/views/viewer/sections/viewer.sections.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/animism-align/frontend/app/views/viewer/sections/viewer.sections.js b/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
index f4089e2..5cf40eb 100644
--- a/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
+++ b/animism-align/frontend/app/views/viewer/sections/viewer.sections.js
@@ -30,14 +30,14 @@ class ViewerSections extends Component {
>
<div>
<div className="section-thumbnail" style={{
- backgroundImage: section.media.length && 'url(' + thumbnailURL(section.media[0]) + ')',
+ backgroundImage: section.media.length && 'url(' + thumbnailURL(section.media[0].media) + ')',
}}/>
<div className="section-title">
{ROMAN_NUMERALS[section.index]}<br />
{section.title}
</div>
<div className="section-media">
- {section.media.map(media => media.type).join(', ')}
+ {section.mediaTypes}
</div>
</div>
</div>