mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 01:01:51 +00:00
Update to handle graphviz output empty graph
This commit is contained in:
parent
92f2a4acf0
commit
c8d37dd192
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue