mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Maps] fix adding kibana tilemap layers (#30094)
This commit is contained in:
parent
eca712589d
commit
e961137f8c
1 changed files with 4 additions and 4 deletions
|
@ -28,10 +28,10 @@ export class CreateSourceEditor extends Component {
|
|||
_loadUrl = async () => {
|
||||
const tilemap = await getKibanaTileMap();
|
||||
if (this._isMounted) {
|
||||
this.setState({
|
||||
url: tilemap.url
|
||||
});
|
||||
this.props.previewTilemap(this.state.url);
|
||||
this.setState(
|
||||
{ url: tilemap.url },
|
||||
() => this.props.previewTilemap(this.state.url)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue