fix routes ServerRouter: Incorrect import path causing account routes to be imported instead of server routes.

This commit is contained in:
prplwtf 2024-02-04 15:26:48 +01:00
parent 9ba5698a4c
commit 2de8f3e7cb

View file

@ -17,7 +17,7 @@ import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
import { useLocation } from 'react-router';
import ConflictStateRenderer from '@/components/server/ConflictStateRenderer';
import { NavigationLinks, NavigationRouter } from '@/blueprint/extends/routers/DashboardRouter';
import { NavigationLinks, NavigationRouter } from '@/blueprint/extends/routers/ServerRouter';
import BeforeSubNavigation from '@/blueprint/components/Navigation/SubNavigation/BeforeSubNavigation';
import AdditionalServerItems from '@/blueprint/components/Navigation/SubNavigation/AdditionalServerItems';
import AfterSubNavigation from '@/blueprint/components/Navigation/SubNavigation/AfterSubNavigation';
@ -86,13 +86,7 @@ export default () => {
<InstallListener />
<TransferListener />
<WebsocketHandler />
{inConflictState && (!rootAdmin || (rootAdmin && !location.pathname.endsWith(`/server/${id}`))) ? (
<ConflictStateRenderer />
) : (
<ErrorBoundary>
<NavigationRouter />
</ErrorBoundary>
)}
<NavigationRouter />
</>
)}
</React.Fragment>