Fix selectMenu test suite
diff --git a/dev/js/src/init.js b/dev/js/src/init.js
index eafb021..90592ec 100644
--- a/dev/js/src/init.js
+++ b/dev/js/src/init.js
@@ -140,9 +140,12 @@
};
// Replace QL select menus with KorAP menus
- selectMenuClass.create(
- document.getElementById('ql-field').parentNode
- ).limit(5);
+ var qlField = document.getElementById('ql-field');
+ if (qlField !== null) {
+ selectMenuClass.create(
+ document.getElementById('ql-field').parentNode
+ ).limit(5);
+ };
var result = document.getElementById('resultinfo');
var resultButton = null;