Skip to content

Commit

Permalink
fix: Dev tools console autocomplete issue opensearch-project#5567
Browse files Browse the repository at this point in the history
  • Loading branch information
kishor82 committed Dec 3, 2023
1 parent 2e7a2ba commit 60760b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/console/public/lib/mappings/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ const retrieveMappings = async (http: HttpSetup, settingsToRetrieve: any, dataSo
};

const retrieveAliases = async (http: HttpSetup, settingsToRetrieve: any, dataSourceId: string) => {
const response = await retrieveSettings(http, 'fields', settingsToRetrieve, dataSourceId);
const response = await retrieveSettings(http, 'indices', settingsToRetrieve, dataSourceId);

if (isHttpResponse(response) && response.body) {
const aliases = response.body as IndexAliases;
Expand All @@ -398,7 +398,7 @@ const retrieveTemplates = async (
settingsToRetrieve: any,
dataSourceId: string
) => {
const response = await retrieveSettings(http, 'fields', settingsToRetrieve, dataSourceId);
const response = await retrieveSettings(http, 'templates', settingsToRetrieve, dataSourceId);

if (isHttpResponse(response) && response.body) {
const resTemplates = response.body;
Expand Down

0 comments on commit 60760b4

Please sign in to comment.