From 136eeeda21cefe3544b3d7ffd4210f9788774301 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 10 Mar 2021 15:40:32 +0100 Subject: sorting mdia. attach annotations and paragraphs to episods --- .../frontend/app/views/editor/overview/overview.container.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'animism-align/frontend/app/views/editor/overview') diff --git a/animism-align/frontend/app/views/editor/overview/overview.container.js b/animism-align/frontend/app/views/editor/overview/overview.container.js index d64bd9f..71ca6c2 100644 --- a/animism-align/frontend/app/views/editor/overview/overview.container.js +++ b/animism-align/frontend/app/views/editor/overview/overview.container.js @@ -32,7 +32,7 @@ class OverviewContainer extends Component { const { annotation } = this.props const stats = annotation.order.reduce((stats, annotation_id) => { const { paragraph_id, type } = annotation.lookup[annotation_id] - if (paragraph_id) { + if (paragraph_id && type === 'sentence') { stats.paragraphs[paragraph_id] = true } if (!stats.types[type]) { @@ -72,7 +72,7 @@ class OverviewContainer extends Component { media: media.order.length + ' media', sections: courtesyS(viewer.sections.length, 'section'), paragraphs: courtesyS(Object.keys(stats.paragraphs).length, 'paragraph'), - duration: timestampHMS(align.duration), + duration: align.duration ? timestampHMS(align.duration) : "No audio file attached", }} />