]> source.dussan.org Git - sonarqube.git/commitdiff
fix the js error with empty search
authorStas Vilchik <vilchiks@gmail.com>
Thu, 10 Sep 2015 12:51:08 +0000 (14:51 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 10 Sep 2015 12:51:08 +0000 (14:51 +0200)
server/sonar-web/src/main/js/apps/nav/global/search-view.js

index 233a1dc5f29f99fab7b19acad644b66f72f0ed1c..2aaad79d8d3d83d8b5db69a4b664afd0c04978e3 100644 (file)
@@ -104,7 +104,7 @@ define([
         return;
       }
       this._bufferedValue = this.$('.js-search-input').val();
-      if (this.searchRequest != null) {
+      if (this.searchRequest != null && this.searchRequest.abort != null) {
         this.searchRequest.abort();
       }
       this.searchRequest = this.search(value);