Просмотр исходного кода

Fixed annotations enabled check from annotationsSrv, Closes #1590

Torkel Ödegaard 10 лет назад
Родитель
Сommit
e78b358643
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/app/features/annotations/annotationsSrv.js

+ 1 - 1
src/app/features/annotations/annotationsSrv.js

@@ -25,7 +25,7 @@ define([
     };
 
     this.getAnnotations = function(rangeUnparsed, dashboard) {
-      if (!dashboard.annotations.enable) {
+      if (dashboard.annotations.list.length === 0) {
         return $q.when(null);
       }