Update to handle graphviz output empty graph
This commit is contained in:
parent
92f2a4acf0
commit
c8d37dd192
@ -343,6 +343,7 @@ function finishView(view) {
|
|||||||
var $ele = $(value).parent().parent();
|
var $ele = $(value).parent().parent();
|
||||||
|
|
||||||
var graphviz = Viz($value.text());
|
var graphviz = Viz($value.text());
|
||||||
|
if (!graphviz) throw Error('viz.js output empty graph');
|
||||||
$value.html(graphviz);
|
$value.html(graphviz);
|
||||||
|
|
||||||
$ele.addClass('graphviz');
|
$ele.addClass('graphviz');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user