Skip to content

Commit

Permalink
Clean console ReferenceError (#418)
Browse files Browse the repository at this point in the history
Signed-off-by: Junqiu Lei <junqiu@amazon.com>
(cherry picked from commit 485ef36)
  • Loading branch information
junqiu-lei authored and github-actions[bot] committed May 26, 2023
1 parent 0eb5a1c commit 1b33179
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/components/map_container/map_container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ export const MapContainer = ({
(indexPattern) => indexPattern.id === selectedLayerConfig.source.indexPatternId
);
if (!findIndexPattern) {
// @ts-ignore
const newIndexPattern = await indexPatterns.get(selectedLayerConfig.source.indexPatternId);
const newIndexPattern = await services.data.indexPatterns.get(
// @ts-ignore
selectedLayerConfig.source.indexPatternId
);
const cloneLayersIndexPatterns = [...layersIndexPatterns, newIndexPattern];
setLayersIndexPatterns(cloneLayersIndexPatterns);
}
Expand Down

0 comments on commit 1b33179

Please sign in to comment.