mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-26 01:18:20 +00:00
fix(ui): Hide 404 page while loading permissions (#13570)
This commit is contained in:
parent
e37b3c3394
commit
e9df5401cb
@ -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>
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user