From 82df31a7d27d6d2657e3643349d8480c445bcc83 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 28 Oct 2015 18:57:24 +0100 Subject: [PATCH] set default time for event form --- app/assets/javascripts/components/timeline/event_form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/timeline/event_form.js b/app/assets/javascripts/components/timeline/event_form.js index 3e1d9bb..431e39d 100644 --- a/app/assets/javascripts/components/timeline/event_form.js +++ b/app/assets/javascripts/components/timeline/event_form.js @@ -5,7 +5,9 @@ export default class EventForm extends Component { constructor(props, context) { super(props, context); if (this.props.event === undefined) { - this.state = { moment: moment().add(30, 'minutes')}; + this.state = { + moment: moment().add(30, 'minutes').format('x') + }; } else { this.state = this.props.event; }