소스 검색

Fixed annotations enabled check from annotationsSrv, Closes #1590

Torkel Ödegaard 10 년 전
부모
커밋
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);
       }