File tree Expand file tree Collapse file tree
src/legacy/core_plugins/interpreter/public/renderers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,13 +30,16 @@ export const visualization = () => ({
3030 const { visData, visConfig, params } = config ;
3131 const visType = config . visType || visConfig . type ;
3232 const $injector = await chrome . dangerouslyGetActiveInjector ( ) ;
33+ const $timeout = $injector . get ( '$timeout' ) as any ;
3334 const Private = $injector . get ( 'Private' ) as any ;
3435 const Vis = Private ( VisProvider ) ;
3536
3637 if ( handlers . vis ) {
3738 // special case in visualize, we need to render first (without executing the expression), for maps to work
38- if ( visConfig ) {
39- handlers . vis . setCurrentState ( { type : visType , params : visConfig } ) ;
39+ if ( visConfig && [ 'tile_map' , 'region_map' ] . includes ( visConfig . type ) ) {
40+ $timeout ( ( ) => {
41+ handlers . vis . setCurrentState ( { type : visType , params : visConfig } ) ;
42+ } ) ;
4043 }
4144 } else {
4245 handlers . vis = new Vis ( {
You can’t perform that action at this time.
0 commit comments