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 getColorByName = useTheme2().visualization.getColorByName;
|
||||||
|
|
||||||
const annos = useMemo(() => {
|
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) {
|
if (newRange) {
|
||||||
let isRegion = newRange.to > newRange.from;
|
let isRegion = newRange.to > newRange.from;
|
||||||
|
|||||||
Reference in New Issue
Block a user