Skip to content

Commit

Permalink
fix: annotation layer crashes when clearing type select (apache#11787)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Nov 24, 2020
1 parent 25345be commit 872a54d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -740,6 +742,7 @@ export default class AnnotationLayer extends React.PureComponent {

<Button
buttonSize="sm"
buttonStyle="primary"
disabled={!isValid}
onClick={this.submitAnnotation}
>
Expand Down

0 comments on commit 872a54d

Please sign in to comment.