fix: Timeseries annotation layers (#34709)

This commit is contained in:
Michael S. Molina
2025-08-15 12:59:30 -03:00
committed by GitHub
parent 3a007f6284
commit fc95c4fc89
11 changed files with 69 additions and 183 deletions

View File

@@ -31,6 +31,7 @@ import {
styled,
getColumnLabel,
withTheme,
VizType,
} from '@superset-ui/core';
import SelectControl from 'src/explore/components/controls/SelectControl';
import TextControl from 'src/explore/components/controls/TextControl';
@@ -244,7 +245,7 @@ class AnnotationLayer extends PureComponent {
chartMetadata.canBeAnnotationType(annotationType),
)
.map(({ key, value: chartMetadata }) => ({
value: key,
value: key === VizType.Line ? 'line' : key,
label: chartMetadata.name,
}));
// Prepend native source if applicable