mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
AnnotationsPlugin2: Skip zero-length, field-less, and time-less frames (#80810)
This commit is contained in:
parent
3903d3eb94
commit
2c5289028d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user