Fix check for redirect on sources

This commit is contained in:
Rene Pfeuffer
2019-09-04 15:21:06 +02:00
parent a95cd9c416
commit 044c9804c4

View File

@@ -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) => {