From e78b3586434efdab1cd50b7ad24aacf068a8bd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 12 Mar 2015 15:50:39 +0100 Subject: [PATCH] Fixed annotations enabled check from annotationsSrv, Closes #1590 --- src/app/features/annotations/annotationsSrv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/features/annotations/annotationsSrv.js b/src/app/features/annotations/annotationsSrv.js index ec524b44ec5..af86a7dfe6d 100644 --- a/src/app/features/annotations/annotationsSrv.js +++ b/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); }