fix(ui): Hide 404 page while loading permissions (#13570)

This commit is contained in:
Andrew Sikowitz 2025-05-20 11:29:56 -07:00 committed by GitHub
parent e37b3c3394
commit e9df5401cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ export const SearchRoutes = (): JSX.Element => {
const entities = isNestedDomainsEnabled
? entityRegistry.getEntitiesForSearchRoutes()
: entityRegistry.getNonGlossaryEntities();
const { config } = useAppConfig();
const { config, loaded } = useAppConfig();
const isThemeV2 = useIsThemeV2();
const FinalSearchablePage = isThemeV2 ? SearchablePageV2 : SearchablePage;
@ -127,7 +127,7 @@ export const SearchRoutes = (): JSX.Element => {
return <NoPageFound />;
}}
/>
<Route component={NoPageFound} />
{me.loaded && loaded && <Route component={NoPageFound} />}
</Switch>
</FinalSearchablePage>
);