diff --git a/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx b/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx index d86c9e95fdcc9..104e7d3977714 100644 --- a/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx +++ b/x-pack/plugins/lens/public/heatmap_visualization/visualization.tsx @@ -284,7 +284,9 @@ export const getHeatmapVisualization = ({ ? [state.gridConfig.yAxisLabelColor] : [], // X-axis - isXAxisLabelVisible: [state.gridConfig.isXAxisLabelVisible], + isXAxisLabelVisible: state.gridConfig.isXAxisLabelVisible + ? [state.gridConfig.isXAxisLabelVisible] + : [], }, }, ],