mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
(cherry picked from commit 306ad2b79f
)
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
parent
4390d289c5
commit
c332f5bbb3
1 changed files with 12 additions and 10 deletions
|
@ -190,17 +190,19 @@ export function LayerPanels(
|
|||
const layerDatasource = datasourceMap[datasourceId];
|
||||
const layerDatasourceState = datasourceStates?.[datasourceId]?.state;
|
||||
|
||||
const trigger = props.uiActions.getTrigger(UPDATE_FILTER_REFERENCES_TRIGGER);
|
||||
const action = props.uiActions.getAction(UPDATE_FILTER_REFERENCES_ACTION);
|
||||
if (datasourceId) {
|
||||
const trigger = props.uiActions.getTrigger(UPDATE_FILTER_REFERENCES_TRIGGER);
|
||||
const action = props.uiActions.getAction(UPDATE_FILTER_REFERENCES_ACTION);
|
||||
|
||||
action?.execute({
|
||||
trigger,
|
||||
fromDataView: layerDatasource.getUsedDataView(layerDatasourceState, layerId),
|
||||
usedDataViews: layerDatasource
|
||||
.getLayers(layerDatasourceState)
|
||||
.map((layer) => layerDatasource.getUsedDataView(layerDatasourceState, layer)),
|
||||
defaultDataView: layerDatasource.getCurrentIndexPatternId(layerDatasourceState),
|
||||
} as ActionExecutionContext);
|
||||
action?.execute({
|
||||
trigger,
|
||||
fromDataView: layerDatasource.getUsedDataView(layerDatasourceState, layerId),
|
||||
usedDataViews: layerDatasource
|
||||
.getLayers(layerDatasourceState)
|
||||
.map((layer) => layerDatasource.getUsedDataView(layerDatasourceState, layer)),
|
||||
defaultDataView: layerDatasource.getCurrentIndexPatternId(layerDatasourceState),
|
||||
} as ActionExecutionContext);
|
||||
}
|
||||
|
||||
dispatchLens(
|
||||
removeOrClearLayer({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue