diff --git a/x-pack/plugins/observability_solution/infra/public/apps/logs_app.tsx b/x-pack/plugins/observability_solution/infra/public/apps/logs_app.tsx index 48cbbd79167a1..329e059288e3e 100644 --- a/x-pack/plugins/observability_solution/infra/public/apps/logs_app.tsx +++ b/x-pack/plugins/observability_solution/infra/public/apps/logs_app.tsx @@ -19,7 +19,6 @@ import { InfraClientStartDeps, InfraClientStartExports } from '../types'; import { CommonInfraProviders, CoreProviders } from './common_providers'; import { prepareMountElement } from './common_styles'; import { KbnUrlStateStorageFromRouterProvider } from '../containers/kbn_url_state_context'; -import { RedirectWithQueryParams } from '../utils/redirect_with_query_params'; export const renderApp = ( core: CoreStart, @@ -60,25 +59,6 @@ const LogsApp: React.FC<{ }> = ({ core, history, pluginStart, plugins, setHeaderActionMenu, storage, theme$ }) => { const { logs, discover, fleet } = core.application.capabilities; - const LogsRouteComponent = - discover?.show && fleet?.read ? ( - { - plugins.share.url.locators - .get(ALL_DATASETS_LOCATOR_ID) - ?.navigate({}); - - return null; - }} - /> - ) : ( - // This needs to redirect to /categories once stream is deprecated when the below ticket is implemented - // https://github.com/elastic/kibana/issues/193321 - - ); - return ( - {LogsRouteComponent} + {Boolean(discover?.show && fleet?.read) && ( + { + plugins.share.url.locators + .get(ALL_DATASETS_LOCATOR_ID) + ?.navigate({}); + + return null; + }} + /> + )} {logs?.show && } diff --git a/x-pack/plugins/observability_solution/infra/public/pages/logs/page_content.tsx b/x-pack/plugins/observability_solution/infra/public/pages/logs/page_content.tsx index 056c98513c244..5b5965bb2d5ec 100644 --- a/x-pack/plugins/observability_solution/infra/public/pages/logs/page_content.tsx +++ b/x-pack/plugins/observability_solution/infra/public/pages/logs/page_content.tsx @@ -113,6 +113,7 @@ export const LogsPageContent: React.FunctionComponent = () => { )} + (