diff --git a/js/components/ascribe_forms/form_contract_agreement.js b/js/components/ascribe_forms/form_contract_agreement.js index 4079b741..783f6696 100644 --- a/js/components/ascribe_forms/form_contract_agreement.js +++ b/js/components/ascribe_forms/form_contract_agreement.js @@ -56,12 +56,14 @@ let ContractAgreementForm = React.createClass({ }, getFormData(){ - return {'appendix': {'default': this.refs.form.refs.appendix.state.value}}; + return {'appendix': {'default': this.refs.form.refs.appendix.state.value}, + 'contract': this.state.contractList[this.state.selectedContract].id}; }, getContracts() { if (this.state.contractList && this.state.contractList.length > 0) { let contractList = this.state.contractList; + console.log(contractList) return ( { - contract.public = true; + contract.is_public = true; ContractListActions.changeContract(contract) .then(() => ContractListActions.fetchContractList()) .catch((err) => {