1
0
Fork 0

fix graph viewer in case one graph is broken

This commit is contained in:
Jan Steemann 2013-08-21 14:49:49 +02:00
parent 700613b2f0
commit 4aea49e611
1 changed files with 8 additions and 3 deletions

View File

@ -525,10 +525,15 @@ function getAllGraphs () {
graphs = [ ];
gdb.toArray().forEach(function(doc) {
var g = new Graph(doc._key);
try {
var g = new Graph(doc._key);
if (g._properties !== null) {
graphs.push(g._properties);
if (g._properties !== null) {
graphs.push(g._properties);
}
}
catch (err) {
// if there's a problem, we just skip this graph
}
});