From 8baecd2240134937840d970a5f9e6462b3edf566 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 23 Jul 2020 22:28:41 +0200 Subject: fix bug where annotations wouldnt update if start_ts == 0 --- .../app/views/align/components/annotations/annotation.form.js | 5 +++-- .../frontend/app/views/align/containers/annotations.container.js | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'animism-align/frontend/app/views/align') 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
return (
- {this.props.annotation.start_ts && + {this.props.annotation.id && }
-- cgit v1.2.3-70-g09d2