Skip to content

Commit 28147e2

Browse files
committed
add check so that we don't try to destroy gd if it DNE
1 parent 9909382 commit 28147e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/jasmine/assets/destroy_graph_div.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
module.exports = function destroyGraphDiv() {
44
var gd = document.getElementById('graph');
5-
document.body.removeChild(gd);
5+
6+
if(gd) document.body.removeChild(gd);
67
};

0 commit comments

Comments
 (0)