mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Fix contractAgreementList not updating correctly after initial creation
This commit is contained in:
parent
f4227e9906
commit
b6ca964adb
@ -83,9 +83,9 @@ class ContractAgreementListActions {
|
|||||||
contractAgreementList in the store is already set to null;
|
contractAgreementList in the store is already set to null;
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}).then((publicContracAgreement) => {
|
}).then((publicContractAgreement) => {
|
||||||
if (publicContracAgreement) {
|
if (publicContractAgreement) {
|
||||||
this.actions.updateContractAgreementList([publicContracAgreement]);
|
this.actions.updateContractAgreementList([publicContractAgreement]);
|
||||||
}
|
}
|
||||||
}).catch(console.logGlobal);
|
}).catch(console.logGlobal);
|
||||||
}
|
}
|
||||||
@ -93,7 +93,10 @@ class ContractAgreementListActions {
|
|||||||
createContractAgreement(issuer, contract){
|
createContractAgreement(issuer, contract){
|
||||||
return Q.Promise((resolve, reject) => {
|
return Q.Promise((resolve, reject) => {
|
||||||
OwnershipFetcher
|
OwnershipFetcher
|
||||||
.createContractAgreement(issuer, contract).then(resolve)
|
.createContractAgreement(issuer, contract)
|
||||||
|
.then((res) => {
|
||||||
|
resolve(res && res.contractagreement)
|
||||||
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.logGlobal(err);
|
console.logGlobal(err);
|
||||||
reject(err);
|
reject(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user