mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Merge remote-tracking branch 'origin/AD-943-add-custom-additional-fields' into AD-943-add-custom-additional-fields
This commit is contained in:
commit
2bd148407b
@ -90,9 +90,7 @@ class ContractAgreementListActions {
|
||||
}
|
||||
|
||||
flushContractAgreementList(){
|
||||
return Q.Promise((resolve, reject) => {
|
||||
return this.actions.updateContractAgreementList(null);
|
||||
});
|
||||
this.actions.updateContractAgreementList(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -77,13 +77,7 @@ let LoanForm = React.createClass({
|
||||
},
|
||||
|
||||
getContractAgreementsOrCreatePublic(email){
|
||||
/* a more complex defer (with promises) otherwise we dispatch while an action is being dispatched) */
|
||||
window.setTimeout(() => {
|
||||
ContractAgreementListActions.flushContractAgreementList()
|
||||
.catch((err) => {
|
||||
console.logGlobal(err);
|
||||
});
|
||||
|
||||
ContractAgreementListActions.flushContractAgreementList();
|
||||
if (email) {
|
||||
// fetch the available contractagreements (pending/accepted)
|
||||
ContractAgreementListActions.fetchAvailableContractAgreementList(email).then(
|
||||
@ -94,7 +88,7 @@ let LoanForm = React.createClass({
|
||||
}
|
||||
}
|
||||
);
|
||||
}}, 0);
|
||||
}
|
||||
},
|
||||
|
||||
getFormData(){
|
||||
|
Loading…
Reference in New Issue
Block a user