diff options
| author | cedricnjanga | 2017-10-10 01:23:01 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-10-10 01:23:01 +0200 |
| commit | 91af53dce7183146f79313df48f7e58b4d950598 (patch) | |
| tree | 567d7cbeb064eefef6ef8aa787af6e0097618886 /app/javascript/time_tables/containers | |
| parent | 08b002abfb101b1edce9750231c989591e049bf7 (diff) | |
| download | chouette-core-91af53dce7183146f79313df48f7e58b4d950598.tar.bz2 | |
Add plugins to webpack config
Diffstat (limited to 'app/javascript/time_tables/containers')
| -rw-r--r-- | app/javascript/time_tables/containers/PeriodForm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/time_tables/containers/PeriodForm.js b/app/javascript/time_tables/containers/PeriodForm.js index 49e79f348..1bde039e2 100644 --- a/app/javascript/time_tables/containers/PeriodForm.js +++ b/app/javascript/time_tables/containers/PeriodForm.js @@ -1,5 +1,5 @@ import { connect } from 'react-redux' -import _ from 'lodash' +import assign from 'lodash/assign' import actions from '../actions' import PeriodFormComponent from '../components/PeriodForm' @@ -23,7 +23,7 @@ const mapDispatchToProps = (dispatch) => { }, onUpdatePeriodForm: (e, group, selectType, modalProps) => { dispatch(actions.updatePeriodForm(e.currentTarget.value, group, selectType)) - let mProps = _.assign({}, modalProps) + let mProps = assign({}, modalProps) mProps[group][selectType] = e.currentTarget.value let val = window.correctDay([parseInt(mProps[group]['day']), parseInt(mProps[group]['month']), parseInt(mProps[group]['year'])]) val = (val < 10) ? '0' + String(val) : String(val) |
