mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-06 21:45:43 +01:00
Remove unnecessary route
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// @flow
|
||||
import React from "react";
|
||||
import { connect } from "react-redux";
|
||||
import { Route, Switch, withRouter } from "react-router-dom";
|
||||
import { withRouter } from "react-router-dom";
|
||||
import type { Repository, Branch } from "@scm-manager/ui-types";
|
||||
import FileTree from "../components/FileTree";
|
||||
import { ErrorNotification, Loading } from "@scm-manager/ui-components";
|
||||
@@ -62,20 +62,7 @@ class Sources extends React.Component<Props> {
|
||||
return (
|
||||
<>
|
||||
{this.renderBranchSelector()}
|
||||
<Switch>
|
||||
<Route
|
||||
path={`${baseUrl}/:revision/:path*`}
|
||||
component={() => (
|
||||
<FileTree repository={repository} baseUrl={baseUrl} />
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
path={`${baseUrl}`}
|
||||
component={() => (
|
||||
<FileTree repository={repository} baseUrl={baseUrl} />
|
||||
)}
|
||||
/>
|
||||
</Switch>
|
||||
<FileTree repository={repository} baseUrl={baseUrl} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user