From 478aed4a9fccb1a879493f0780361886e97e6395 Mon Sep 17 00:00:00 2001 From: Joseph McElroy Date: Mon, 14 Oct 2024 11:04:37 +0100 Subject: [PATCH] only update the index details page when plugin is enabled --- x-pack/plugins/search_indices/public/plugin.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/search_indices/public/plugin.ts b/x-pack/plugins/search_indices/public/plugin.ts index a2dd610234b82..8ff86d4d3c774 100644 --- a/x-pack/plugins/search_indices/public/plugin.ts +++ b/x-pack/plugins/search_indices/public/plugin.ts @@ -87,11 +87,13 @@ export class SearchIndicesPlugin ): SearchIndicesPluginStart { const { indexManagement } = deps; docLinks.setDocLinks(core.docLinks.links); - indexManagement?.extensionsService.setIndexDetailsPageRoute({ - renderRoute: (indexName) => { - return `/app/elasticsearch/indices/index_details/${indexName}`; - }, - }); + if (this.pluginEnabled) { + indexManagement?.extensionsService.setIndexDetailsPageRoute({ + renderRoute: (indexName) => { + return `/app/elasticsearch/indices/index_details/${indexName}`; + }, + }); + } return { enabled: this.pluginEnabled, startAppId: START_APP_ID,