mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
Fix chart annotation source type showing perpetual loading when re-selecting the same value. (#10036)
Remove accidental console.log used during testing. Co-authored-by: Natalie Ruhe <natalie@preset.io>
This commit is contained in:
@@ -240,12 +240,16 @@ export default class AnnotationLayer extends React.PureComponent {
|
||||
}
|
||||
|
||||
handleAnnotationSourceType(sourceType) {
|
||||
this.setState({
|
||||
sourceType,
|
||||
isLoadingOptions: true,
|
||||
validationErrors: {},
|
||||
value: null,
|
||||
});
|
||||
const { sourceType: prevSourceType } = this.state;
|
||||
|
||||
if (prevSourceType !== sourceType) {
|
||||
this.setState({
|
||||
sourceType,
|
||||
isLoadingOptions: true,
|
||||
validationErrors: {},
|
||||
value: null,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
handleValue(value) {
|
||||
|
||||
Reference in New Issue
Block a user