mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
fix: annotation layer crashes when clearing type select (#11787)
This commit is contained in:
parent
25345bea64
commit
872a54d304
@ -597,6 +597,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
||||
{ value: 'dotted', label: 'Dotted' },
|
||||
]}
|
||||
value={style}
|
||||
clearable={false}
|
||||
onChange={v => this.setState({ style: v })}
|
||||
/>
|
||||
<SelectControl
|
||||
@ -704,6 +705,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
||||
description={t('Choose the Annotation Layer Type')}
|
||||
label={t('Annotation Layer Type')}
|
||||
name="annotation-layer-type"
|
||||
clearable={false}
|
||||
options={supportedAnnotationTypes}
|
||||
value={annotationType}
|
||||
onChange={this.handleAnnotationType}
|
||||
@ -740,6 +742,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
||||
|
||||
<Button
|
||||
buttonSize="sm"
|
||||
buttonStyle="primary"
|
||||
disabled={!isValid}
|
||||
onClick={this.submitAnnotation}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user