summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/views/editor/align/components
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-10 15:40:32 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-10 15:40:32 +0100
commit136eeeda21cefe3544b3d7ffd4210f9788774301 (patch)
tree49701142bf5e7c081f783fd3cdc6601d4e0c65b2 /animism-align/frontend/app/views/editor/align/components
parentc84a675c07fd1997588794a26bf41c04f23c121e (diff)
sorting mdia. attach annotations and paragraphs to episods
Diffstat (limited to 'animism-align/frontend/app/views/editor/align/components')
-rw-r--r--animism-align/frontend/app/views/editor/align/components/annotations/annotation.index.js2
1 files changed, 2 insertions, 0 deletions
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)