diff options
Diffstat (limited to 'animism-align/frontend/app/views/editor/overview/overview.container.js')
| -rw-r--r-- | animism-align/frontend/app/views/editor/overview/overview.container.js | 4 |
1 files changed, 2 insertions, 2 deletions
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", }} /> <TableObject |
