mirror of https://gitee.com/bigwinds/arangodb
It is no longer possible to view graphs having no edge definitions
This commit is contained in:
parent
47c8f709a9
commit
9beab0aaff
|
@ -23,6 +23,11 @@
|
||||||
loadGraphViewer: function(e) {
|
loadGraphViewer: function(e) {
|
||||||
var name = $(e.currentTarget).attr("id");
|
var name = $(e.currentTarget).attr("id");
|
||||||
name = name.substr(0, name.length - 5);
|
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 = {
|
var adapterConfig = {
|
||||||
type: "gharial",
|
type: "gharial",
|
||||||
graphName: name,
|
graphName: name,
|
||||||
|
|
Loading…
Reference in New Issue