mirror of
https://github.com/apache/superset.git
synced 2026-06-01 05:39:17 +00:00
fix: Timeseries annotation layers (#34709)
This commit is contained in:
committed by
GitHub
parent
3a007f6284
commit
fc95c4fc89
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user