mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-24 00:09:07 +01:00
Fix check for redirect on sources
This commit is contained in:
@@ -93,12 +93,8 @@ class Sources extends React.Component<Props, State> {
|
||||
};
|
||||
|
||||
shouldRedirect = () => {
|
||||
const { branches, location } = this.props;
|
||||
return (
|
||||
branches &&
|
||||
(location.pathname.endsWith("sources") ||
|
||||
location.pathname.endsWith("sources/"))
|
||||
);
|
||||
const { branches, revision } = this.props;
|
||||
return branches && !revision;
|
||||
};
|
||||
|
||||
branchSelected = (branch?: Branch) => {
|
||||
|
||||
Reference in New Issue
Block a user