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 --- .../app/views/editor/align/components/annotations/annotation.index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'animism-align/frontend/app/views/editor/align/components/annotations') diff --git a/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js b/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js index 7c76fca..e2c7a51 100644 --- a/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js +++ b/animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js @@ -58,6 +58,7 @@ class AnnotationIndex extends PureComponent { } else { actions.paragraph.create({ type: 'paragraph', + episode_id: this.props.episode_id, start_ts: annotation.start_ts, }).then(data => { actions.align.setSelectedParagraph(data.res.id) @@ -119,6 +120,7 @@ const mapStateToProps = state => ({ selectedAnnotation: state.align.selectedAnnotation, index: state.annotation.index, media: state.media.index.lookup, + episode_id: state.site.episode.id, }) export default connect(mapStateToProps)(AnnotationIndex) -- cgit v1.2.3-70-g09d2