diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-23 22:28:41 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-23 22:28:41 +0200 |
| commit | 8baecd2240134937840d970a5f9e6462b3edf566 (patch) | |
| tree | a6c19867a9cf79fa15ac640f926fff93f5a3306d /animism-align/frontend/app/views/align | |
| parent | bcb7c778eee1a2dd14fe222f7a30eada1fd8f902 (diff) | |
fix bug where annotations wouldnt update if start_ts == 0
Diffstat (limited to 'animism-align/frontend/app/views/align')
| -rw-r--r-- | animism-align/frontend/app/views/align/components/annotations/annotation.form.js | 5 | ||||
| -rw-r--r-- | animism-align/frontend/app/views/align/containers/annotations.container.js | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js index 7d66272..f4620bc 100644 --- a/animism-align/frontend/app/views/align/components/annotations/annotation.form.js +++ b/animism-align/frontend/app/views/align/components/annotations/annotation.form.js @@ -16,7 +16,9 @@ import { } from './annotationForms' const ANNOTATION_TYPES = [ - 'sentence', 'header', 'paragraph_end', 'video', 'image', 'image_carousel', + 'sentence', 'header', 'paragraph_end', + 'video', + 'image', 'image_carousel', ].map(name => ({ name, label: capitalize(name.replace('_', ' ')) })) class AnnotationForm extends Component { @@ -110,7 +112,6 @@ class AnnotationForm extends Component { } render() { const { timeline, annotation, media } = this.props - if (!annotation.start_ts) return <div></div> return ( <div className='annotationForm' diff --git a/animism-align/frontend/app/views/align/containers/annotations.container.js b/animism-align/frontend/app/views/align/containers/annotations.container.js index e199bd6..9c12f9a 100644 --- a/animism-align/frontend/app/views/align/containers/annotations.container.js +++ b/animism-align/frontend/app/views/align/containers/annotations.container.js @@ -18,10 +18,11 @@ class Annotations extends Component { super(props) } render() { + console.log(this.props.annotation) return ( <div className='annotations'> <AnnotationIndex /> - {this.props.annotation.start_ts && + {this.props.annotation.id && <AnnotationForm /> } </div> |
