From 72f99c98ee16f35f711dcdd27dff550621e37cf5 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Mon, 22 Mar 2021 11:36:14 +0200 Subject: [PATCH] Fix jest test --- .../public/application/components/vis_types/timeseries/vis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js b/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js index 476934e2b3309..5a2fc05817f71 100644 --- a/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js +++ b/src/plugins/vis_type_timeseries/public/application/components/vis_types/timeseries/vis.js @@ -168,7 +168,7 @@ class TimeseriesVisualization extends Component { name: seriesGroup.split_color_mode === 'kibana' ? 'kibana_palette' - : seriesGroup.split_color_mode || seriesGroup.palette.name, + : seriesGroup.split_color_mode || seriesGroup.palette?.name, }; const yScaleType = hasSeparateAxis ? TimeseriesVisualization.getAxisScaleType(seriesGroup)