Skip to content

Commit 35315ca

Browse files
committed
fix(form_language): prevent JS error
1 parent 075896b commit 35315ca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

js/scripts.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,9 @@ var plugin_formcreator = new function() {
11651165
close: function () {
11661166
// Remove unclosed TinyMCE toolbar
11671167
var tinyToolbar = document.querySelector('.tox-tinymce-aux');
1168-
tinyToolbar.parentNode.removeChild(tinyToolbar);
1168+
if (tinyToolbar) {
1169+
tinyToolbar.parentNode.removeChild(tinyToolbar);
1170+
}
11691171
// Reload the tab
11701172
reloadTab();
11711173
},

0 commit comments

Comments
 (0)