Annotations: Fix rendering (#68038)

pull/67164/head^2
Adela Almasan 2 years ago committed by GitHub
parent c9e5c229ec
commit 13603c7d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      public/app/plugins/panel/timeseries/plugins/AnnotationsPlugin.tsx

@ -28,6 +28,11 @@ export const AnnotationsPlugin = ({ annotations, timeZone, config }: Annotations
}
annotationsRef.current = views;
return () => {
// clear on unmount
annotationsRef.current = [];
};
}, [annotations]);
useLayoutEffect(() => {

Loading…
Cancel
Save