[Lens] Fixes broken drilldowns for gauges and heatmaps (#134008)

* [Lens] Fixes broken drilldowns for gauges and heatmaps

* Revert drilldown to gauges
This commit is contained in:
Stratoula Kalafateli 2022-06-09 18:10:13 +03:00 committed by GitHub
parent 3aac9b4115
commit 0dc505b1fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ import { Position } from '@elastic/charts';
import { CUSTOM_PALETTE, PaletteRegistry, CustomPaletteParams } from '@kbn/coloring';
import { ThemeServiceStart } from '@kbn/core/public';
import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public';
import { VIS_EVENT_TO_TRIGGER } from '@kbn/visualizations-plugin/public';
import { HeatmapIcon } from '@kbn/expression-heatmap-plugin/public';
import type { OperationMetadata, Visualization } from '../types';
import type { HeatmapVisualizationState } from './types';
@ -154,6 +155,8 @@ export const getHeatmapVisualization = ({
getSuggestions,
triggers: [VIS_EVENT_TO_TRIGGER.filter, VIS_EVENT_TO_TRIGGER.brush],
getConfiguration({ state, frame, layerId }) {
const datasourceLayer = frame.datasourceLayers[layerId];