1
0
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:
Tim Daubenschütz 2015-12-09 13:04:15 +01:00
parent 4727646654
commit 03481f3b09

View File

@ -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) {