1
0
Fork 0

It is no longer possible to view graphs having no edge definitions

This commit is contained in:
Michael Hackstein 2014-07-09 16:40:36 +02:00
parent 47c8f709a9
commit 9beab0aaff
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,11 @@
loadGraphViewer: function(e) {
var name = $(e.currentTarget).attr("id");
name = name.substr(0, name.length - 5);
var edgeDefs = this.collection.get(name).get("edgeDefinitions");
if (!edgeDefs || edgeDefs.length === 0) {
// User Info
return;
}
var adapterConfig = {
type: "gharial",
graphName: name,