ソースを参照

fix: graphite annotation tooltip included undefined, fixes #9707

Torkel Ödegaard 8 年 前
コミット
43d45f9fae
1 ファイル変更1 行追加1 行削除
  1. 1 1
      public/app/features/annotations/annotation_tooltip.ts

+ 1 - 1
public/app/features/annotations/annotation_tooltip.ts

@@ -39,7 +39,7 @@ export function annotationTooltipDirective($sanitize, dashboardSrv, contextSrv,
           text = text + '<br />' + event.text;
         }
       } else if (title) {
-        text = title + '<br />' + text;
+        text = title + '<br />' + (_.isString(text) ? text : '');
         title = '';
       }