Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
70bc83636f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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