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 <[email protected]>
  • Loading branch information
junqiu-lei authored May 26, 2023
1 parent d32f2c4 commit 485ef36
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 485ef36

Please sign in to comment.