Explorar o código

Fixed annotations enabled check from annotationsSrv, Closes #1590

Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
e78b358643
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
       }