Skip to content

Commit 4036bb1

Browse files
committed
Only display selection list if there are snippets
Regression introduced by 0dfa8b1. Fixes #24
1 parent 0606c18 commit 4036bb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/snippets.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jQuery(document).ready(function($) {
3434
$(data.selector).each(function() {
3535
var textarea = $(this);
3636

37-
if (data.snippets !== null) {
37+
// Only display snippets selector if there are any
38+
if (data.snippets) {
3839
try {
3940
// Create Snippets select
4041
var select = $("<select></select>");

0 commit comments

Comments
 (0)