Browse Source

[spark] Is empty result should work with any type of data

Romain Rigaux 11 years ago
parent
commit
f0307d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/spark/static/js/spark.vm.js

+ 1 - 1
apps/spark/static/js/spark.vm.js

@@ -286,7 +286,7 @@ function sparkViewModel() {
           clearInterval(timerId);
           if (data.results.status == 'OK') {
             self.updateResults(data.results.result);
-            self.resultsEmpty($.isEmptyObject(data.results.result));
+            self.resultsEmpty(data.results.result.length > 0);
           } else {
             self.query.errors.push(data.results.ERROR.message);
           }