Skip to content

Disabling vis_type_vega causes an unhandled exception during runtime #59622

@sorenlouv

Description

@sorenlouv

I'm seeing the following error in Kibana on master:
image

It's caused by this line:

enableExternalUrls: visTypeVega.config.enableExternalUrls,

where visTypeVega is undefined because it has been disabled. I suggest solving this with a null check:

-  enableExternalUrls: visTypeVega.config.enableExternalUrls, 
+  enableExternalUrls: visTypeVega?.config.enableExternalUrls, 

To repro add the following to config/kibana.yml:

vis_type_vega.enabled: false

Metadata

Metadata

Assignees

Labels

Feature:VegaVega visualizationsTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experience

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions