Skip to content
Snippets Groups Projects
Commit 3c80060a authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix a console error, that occur when exit the network view

parent b2b78703
No related branches found
No related tags found
No related merge requests found
......@@ -197,7 +197,7 @@ angular.module('cesium.network.services', ['ngApi', 'cesium.currency.services',
return $q.all(initJobs)
.then(function() {
return data.bma.network.peers();
return data.bma && data.bma.network.peers();
})
.then(function(res){
if (!res || !res.peers || !res.peers.length) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment