Skip to content

Commit

Permalink
Clean console ReferenceError (#418) (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
opensearch-trigger-bot[bot] authored May 26, 2023
1 parent 0eb5a1c commit 0d976e7
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 0d976e7

Please sign in to comment.