mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
Fix bug: Old edition HTTP request holds loading data for new edition request
This commit is contained in:
parent
4727646654
commit
03481f3b09
@ -24,10 +24,8 @@ class EditionStore {
|
|||||||
onFetchEdition(idToFetch) {
|
onFetchEdition(idToFetch) {
|
||||||
this.editionMeta.idToFetch = idToFetch;
|
this.editionMeta.idToFetch = idToFetch;
|
||||||
|
|
||||||
if(!this.getInstance().isLoading()) {
|
|
||||||
this.getInstance().lookupEdition();
|
this.getInstance().lookupEdition();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
onSuccessFetchEdition(res) {
|
onSuccessFetchEdition(res) {
|
||||||
if(res && res.edition) {
|
if(res && res.edition) {
|
||||||
|
Loading…
Reference in New Issue
Block a user