mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 13:27:30 -05:00
AnnotationsPlugin2: Skip zero-length, field-less, and time-less frames (#80810)
This commit is contained in:
@@ -69,7 +69,9 @@ export const AnnotationsPlugin2 = ({
|
||||
const getColorByName = useTheme2().visualization.getColorByName;
|
||||
|
||||
const annos = useMemo(() => {
|
||||
let annos = annotations.filter((frame) => frame.name !== 'exemplar');
|
||||
let annos = annotations.filter(
|
||||
(frame) => frame.name !== 'exemplar' && frame.length > 0 && frame.fields.some((f) => f.name === 'time')
|
||||
);
|
||||
|
||||
if (newRange) {
|
||||
let isRegion = newRange.to > newRange.from;
|
||||
|
||||
Reference in New Issue
Block a user