Skip to content

Commit

Permalink
set default time for event form
Browse files Browse the repository at this point in the history
  • Loading branch information
iasoon committed Oct 28, 2015
1 parent a8dd6d3 commit 82df31a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/components/timeline/event_form.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 82df31a

Please sign in to comment.