summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-02 12:57:28 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-02 12:57:28 -0600
commitbccd791d4d698b6011ecea781d0ebc7c9ec1ddf8 (patch)
tree97e21f8b03cdd0e26f8971a50da3e2c5a8836b68 /app/assets
parent42086615e5bede8b0720b410b18017d12c87adfa (diff)
downloadgitlab-ce-bccd791d4d698b6011ecea781d0ebc7c9ec1ddf8.tar.gz
fix errors within gl_dropdown_spec.js when running in Karma
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/gl_dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index d2f66cf5249..5c86e98567a 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -249,7 +249,7 @@
_this.fullData = data;
_this.parseData(_this.fullData);
_this.focusTextInput();
- if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val().trim() !== '') {
+ if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val() && _this.filter.input.val().trim() !== '') {
return _this.filter.input.trigger('input');
}
};