Переглянути джерело

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;
           text = text + '<br />' + event.text;
         }
         }
       } else if (title) {
       } else if (title) {
-        text = title + '<br />' + text;
+        text = title + '<br />' + (_.isString(text) ? text : '');
         title = '';
         title = '';
       }
       }