From e5549532bd8e17b1f74ec51a8f3bbec332e67da3 Mon Sep 17 00:00:00 2001 From: Nathan Reese Date: Mon, 18 Nov 2019 09:16:52 -0700 Subject: [PATCH] review feedback --- .../layer_panel/filter_editor/filter_editor.js | 3 ++- .../layers/sources/client_file_source/geojson_file_source.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/filter_editor/filter_editor.js b/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/filter_editor/filter_editor.js index f736f87dc46e1..20520ad3ff8f1 100644 --- a/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/filter_editor/filter_editor.js +++ b/x-pack/legacy/plugins/maps/public/connected_components/layer_panel/filter_editor/filter_editor.js @@ -43,7 +43,8 @@ export class FilterEditor extends Component { } _loadIndexPatterns = async () => { - const indexPatternIds = this.props.layer.getIndexPatternIds(); + // Filter only effects source so only load source indices. + const indexPatternIds = this.props.layer.getSource().getIndexPatternIds(); const indexPatterns = []; const getIndexPatternPromises = indexPatternIds.map(async indexPatternId => { try { diff --git a/x-pack/legacy/plugins/maps/public/layers/sources/client_file_source/geojson_file_source.js b/x-pack/legacy/plugins/maps/public/layers/sources/client_file_source/geojson_file_source.js index b46b0c84ae1a4..6c298352cc03a 100644 --- a/x-pack/legacy/plugins/maps/public/layers/sources/client_file_source/geojson_file_source.js +++ b/x-pack/legacy/plugins/maps/public/layers/sources/client_file_source/geojson_file_source.js @@ -90,7 +90,6 @@ export class GeojsonFileSource extends AbstractVectorSource { geoField, filterByMapBounds }, inspectorAdapters); - // addAndViewSource is AddLayerPanel._viewLayer addAndViewSource(source); importSuccessHandler(indexResponses); }