🌊 Streams: Fix redirect bug (#203640)

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.
This commit is contained in:
Joe Reuter 2024-12-10 19:07:55 +01:00 committed by GitHub
parent 7ca3b8e857
commit 1e29e6caff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ export function StreamDetailManagement({
);
}
if (!definition?.managed) {
if (definition && !definition.managed) {
return (
<RedirectTo
path="/{key}/management/{subtab}"