We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83f2c6f commit b18afc8Copy full SHA for b18afc8
files/snippets.js
@@ -37,7 +37,7 @@ jQuery(document).ready(function($) {
37
var textarea = $(this);
38
39
// Only display snippets selector if there are any
40
- if (data.snippets) {
+ if (Array.isArray(data.snippets) && data.snippets.length > 0) {
41
try {
42
// Create Snippets select
43
var select = $("<select></select>");
0 commit comments