mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
fix: 🐛 stop showing spinner only on error (#38289)
This commit is contained in:
parent
7ad2439382
commit
a1ecfffd4f
1 changed files with 2 additions and 5 deletions
|
@ -127,12 +127,9 @@ export class StepTimeFieldComponent extends Component {
|
|||
} catch (error) {
|
||||
if (!this.mounted) return;
|
||||
this.setState({
|
||||
error: error instanceof Error ? error.message : String(error)
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
isCreating: false,
|
||||
});
|
||||
} finally {
|
||||
if (this.mounted) {
|
||||
this.setState({ isCreating: false });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue