mirror of https://github.com/status-im/codimd.git
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 graphviz = Viz($value.text());
|
||||
if (!graphviz) throw Error('viz.js output empty graph');
|
||||
$value.html(graphviz);
|
||||
|
||||
$ele.addClass('graphviz');
|
||||
|
|
Loading…
Reference in New Issue