fix routes
ServerRouter
: Incorrect import path causing account routes to be imported instead of server routes.
This commit is contained in:
parent
9ba5698a4c
commit
2de8f3e7cb
1 changed files with 2 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue