From 1e29e6caff86758de7d5f80efef74eb41429d78c Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Tue, 10 Dec 2024 19:07:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8A=20Streams:=20Fix=20redirect=20bug?= =?UTF-8?q?=20(#203640)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As discussed here: https://github.com/elastic/kibana/pull/202372#discussion_r1875857095 There is a bug redirecting the user away from any management tab but `route`. This was happening because while loading the definition it would behave as if the stream is unmanaged. This fixes this problem. --- .../public/components/stream_detail_management/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/streams_app/public/components/stream_detail_management/index.tsx b/x-pack/plugins/streams_app/public/components/stream_detail_management/index.tsx index 1e66490bca3c9..4f3d207c91789 100644 --- a/x-pack/plugins/streams_app/public/components/stream_detail_management/index.tsx +++ b/x-pack/plugins/streams_app/public/components/stream_detail_management/index.tsx @@ -80,7 +80,7 @@ export function StreamDetailManagement({ ); } - if (!definition?.managed) { + if (definition && !definition.managed) { return (