mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-29 19:35:56 +00:00
Fix : Do not render the slack chat component directly as child of router switch (#9166)
This commit is contained in:
parent
d2fdb47f22
commit
24ff5562db
@ -137,8 +137,9 @@ const AppRouter = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Switch>
|
<>
|
||||||
{slackChat}
|
{slackChat}
|
||||||
|
<Switch>
|
||||||
<Route exact component={SigninPage} path={ROUTES.SIGNIN} />
|
<Route exact component={SigninPage} path={ROUTES.SIGNIN} />
|
||||||
{callbackComponent ? (
|
{callbackComponent ? (
|
||||||
<Route component={callbackComponent} path={ROUTES.CALLBACK} />
|
<Route component={callbackComponent} path={ROUTES.CALLBACK} />
|
||||||
@ -162,7 +163,11 @@ const AppRouter = () => {
|
|||||||
component={ForgotPassword}
|
component={ForgotPassword}
|
||||||
path={ROUTES.FORGOT_PASSWORD}
|
path={ROUTES.FORGOT_PASSWORD}
|
||||||
/>
|
/>
|
||||||
<Route exact component={ResetPassword} path={ROUTES.RESET_PASSWORD} />
|
<Route
|
||||||
|
exact
|
||||||
|
component={ResetPassword}
|
||||||
|
path={ROUTES.RESET_PASSWORD}
|
||||||
|
/>
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
component={AccountActivationConfirmation}
|
component={AccountActivationConfirmation}
|
||||||
@ -173,6 +178,7 @@ const AppRouter = () => {
|
|||||||
{isAuthenticated && <AuthenticatedAppRouter />}
|
{isAuthenticated && <AuthenticatedAppRouter />}
|
||||||
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
|
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
|
||||||
</Switch>
|
</Switch>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user