Selaa lähdekoodia

Fix networks refresh delay in Wizard Networks page

While new networks are loaded for new Wizard Options, old networks are
still displayed in the Wizard Networks list.
Sergiu Miclea 7 vuotta sitten
vanhempi
sitoutus
70bc83636f
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/stores/NetworkStore.js

+ 1 - 0
src/stores/NetworkStore.js

@@ -66,6 +66,7 @@ class NetworkStore {
       }
       }
     }
     }
 
 
+    this.networks = []
     return NetworkSource.loadNetworks(endpointId, environment, options).then((networks: Network[]) => {
     return NetworkSource.loadNetworks(endpointId, environment, options).then((networks: Network[]) => {
       this.loading = false
       this.loading = false
       this.networks = networks
       this.networks = networks