@@ -16,7 +16,9 @@ class WBArvadosCrumbs extends Component { | |||||
let { arvHost, arvToken } = this.props.app.state; | let { arvHost, arvToken } = this.props.app.state; | ||||
let prom = fetchObjectParents(arvHost, arvToken, this.props.uuid); | let prom = fetchObjectParents(arvHost, arvToken, this.props.uuid); | ||||
prom = prom.then(parents => this.setState({ 'items': parents })); | |||||
prom = prom.then(parents => { | |||||
this.setState({ 'items': parents }); | |||||
}); | |||||
} | } | ||||
componentDidMount() { | componentDidMount() { | ||||
@@ -1,4 +1,6 @@ | |||||
import wbApplyRequestOrdering from 'wb-apply-request-ordering'; | |||||
import wbApplyPromiseOrdering from 'wb-apply-promise-ordering'; | |||||
const requestPromiseOrdering = {}; | |||||
function makeArvadosRequest(arvHost, arvToken, endpoint, params={}) { | function makeArvadosRequest(arvHost, arvToken, endpoint, params={}) { | ||||
const defaultParams = { | const defaultParams = { | ||||
@@ -37,7 +39,7 @@ function makeArvadosRequest(arvHost, arvToken, endpoint, params={}) { | |||||
xhr.send(data); | xhr.send(data); | ||||
}); | }); | ||||
// prom = wbApplyRequestOrdering(prom); | |||||
prom = wbApplyPromiseOrdering(prom, requestPromiseOrdering); | |||||
return prom; | return prom; | ||||
} | } | ||||
@@ -1,6 +1,6 @@ | |||||
const defaultOrderRegistry = {}; | const defaultOrderRegistry = {}; | ||||
function wbApplyRequestOrdering(prom, orderRegistry) { | |||||
function wbApplyPromiseOrdering(prom, orderRegistry) { | |||||
let orderId; | let orderId; | ||||
if (!orderRegistry) | if (!orderRegistry) | ||||
@@ -63,4 +63,4 @@ function wbApplyRequestOrdering(prom, orderRegistry) { | |||||
return prom; | return prom; | ||||
} | } | ||||
export default wbApplyRequestOrdering; | |||||
export default wbApplyPromiseOrdering; |