diff --git a/public/app/features/dashboard/components/AnnotationSettings/AngularEditorLoader.tsx b/public/app/features/dashboard/components/AnnotationSettings/AngularEditorLoader.tsx index b01dec61cee..0ef7279c43c 100644 --- a/public/app/features/dashboard/components/AnnotationSettings/AngularEditorLoader.tsx +++ b/public/app/features/dashboard/components/AnnotationSettings/AngularEditorLoader.tsx @@ -52,7 +52,10 @@ export class AngularEditorLoader extends React.PureComponent { } const loader = getAngularLoader(); - const template = ` `; + // NOTE: BE CAREFUL HERE + // If this template contains an ng-if, then it won't be removed correctly by AngularLoader. + // The compiledElem will only contain the single comment node (e.g. ) + const template = ` `; const scopeProps = { ctrl: { currentDatasource: this.props.datasource,