Loading public/js/components/Plan/PlanTab.js +6 −1 Original line number Diff line number Diff line Loading @@ -76,9 +76,14 @@ export default class Plan extends Component { this.props.onChangeFieldValue(['description'], value); } onChangePlays = (plays) => { onChangePlays = (plays, playWasRemoved = false) => { const playsToSave = plays === '' ? [] : plays.split(','); this.props.onChangeFieldValue(['play'], Immutable.List(playsToSave)); if (playWasRemoved) { this.props.onChangeFieldValue(['rates'], Immutable.Map()); this.props.onChangeFieldValue(['include', 'groups'], Immutable.Map()); this.props.onChangeFieldValue(['include', 'services'], Immutable.List()); } } onChangePlanEach = (e) => { Loading public/js/components/Service/ServiceDetails.js +5 −1 Original line number Diff line number Diff line Loading @@ -71,9 +71,13 @@ export default class ServiceDetails extends Component { this.props.updateItem(['quantitative'], value); } onChangePlays = (plays) => { onChangePlays = (plays, playWasRemoved = false) => { const playsToSave = plays === '' ? [] : plays.split(','); this.props.updateItem(['play'], Immutable.List(playsToSave)); if (playWasRemoved) { this.props.updateItem(['rates'], Immutable.Map()); this.props.updateItem(['include', 'groups'], Immutable.Map()); } } onChangeDescription = (e) => { Loading Loading
public/js/components/Plan/PlanTab.js +6 −1 Original line number Diff line number Diff line Loading @@ -76,9 +76,14 @@ export default class Plan extends Component { this.props.onChangeFieldValue(['description'], value); } onChangePlays = (plays) => { onChangePlays = (plays, playWasRemoved = false) => { const playsToSave = plays === '' ? [] : plays.split(','); this.props.onChangeFieldValue(['play'], Immutable.List(playsToSave)); if (playWasRemoved) { this.props.onChangeFieldValue(['rates'], Immutable.Map()); this.props.onChangeFieldValue(['include', 'groups'], Immutable.Map()); this.props.onChangeFieldValue(['include', 'services'], Immutable.List()); } } onChangePlanEach = (e) => { Loading
public/js/components/Service/ServiceDetails.js +5 −1 Original line number Diff line number Diff line Loading @@ -71,9 +71,13 @@ export default class ServiceDetails extends Component { this.props.updateItem(['quantitative'], value); } onChangePlays = (plays) => { onChangePlays = (plays, playWasRemoved = false) => { const playsToSave = plays === '' ? [] : plays.split(','); this.props.updateItem(['play'], Immutable.List(playsToSave)); if (playWasRemoved) { this.props.updateItem(['rates'], Immutable.Map()); this.props.updateItem(['include', 'groups'], Immutable.Map()); } } onChangeDescription = (e) => { Loading