Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 authored Mar 28, 2018
1 parent 20b05c0 commit 8ce306a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/EditorWidgets/Date/DateControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ export default class DateControl extends React.Component {
includeTime: PropTypes.bool,
};

constructor(props) {
super(props);
const { field, includeTime } = this.props;
this.format = field.get('format') || (includeTime ? DEFAULT_DATETIME_FORMAT : DEFAULT_DATE_FORMAT);
}
format = this.props.field.get('format') || (this.props.includeTime ? DEFAULT_DATETIME_FORMAT : DEFAULT_DATE_FORMAT);

componentDidMount() {
const { value } = this.props;
Expand Down

0 comments on commit 8ce306a

Please sign in to comment.