AnnotationsPlugin2: Skip exemplar frames (#80760)

This commit is contained in:
Leon Sorokin 2024-01-17 14:08:30 -06:00 committed by GitHub
parent a4b2b86194
commit 2aa533c6c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,7 @@ export const AnnotationsPlugin2 = ({
const getColorByName = useTheme2().visualization.getColorByName;
const annos = useMemo(() => {
let annos = annotations.slice();
let annos = annotations.filter((frame) => frame.name !== 'exemplar');
if (newRange) {
let isRegion = newRange.to > newRange.from;