From 91e5e49809971e201e920140c29a053b24a0016d Mon Sep 17 00:00:00 2001 From: Kishor Rathva Date: Thu, 7 Dec 2023 00:33:59 +0530 Subject: [PATCH] fix: Dev tools console autocomplete issue #5567 Signed-off-by: kishor82 --- src/plugins/console/public/lib/mappings/mappings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/console/public/lib/mappings/mappings.ts b/src/plugins/console/public/lib/mappings/mappings.ts index 2bd425ade95e..4bfefc79af83 100644 --- a/src/plugins/console/public/lib/mappings/mappings.ts +++ b/src/plugins/console/public/lib/mappings/mappings.ts @@ -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; @@ -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;