diff --git a/src/plugins/opensearch_dashboards_overview/public/plugin.ts b/src/plugins/opensearch_dashboards_overview/public/plugin.ts index 2d5e2164424a..e38282ff06d6 100644 --- a/src/plugins/opensearch_dashboards_overview/public/plugin.ts +++ b/src/plugins/opensearch_dashboards_overview/public/plugin.ts @@ -77,14 +77,13 @@ export class OpenSearchDashboardsOverviewPlugin return hasOpenSearchDashboardsApp; }), distinct(), - map(() => { + map((hasOpenSearchDashboardsApp) => { return () => { - // Wazuh: Hide the OpenSearch Dashboards Overview app - // TODO (unknown reason: `Add your data` button ?? ) - return { - status: AppStatus.inaccessible, - navLinkStatus: AppNavLinkStatus.hidden, - }; + if (!hasOpenSearchDashboardsApp) { + return { status: AppStatus.inaccessible, navLinkStatus: AppNavLinkStatus.hidden }; + } else { + return { status: AppStatus.accessible, navLinkStatus: AppNavLinkStatus.default }; + } }; }) );