mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
fix switching from svn source with selected revision to commits view
This commit is contained in:
@@ -67,7 +67,7 @@ class Sources extends React.Component<Props> {
|
||||
|
||||
evaluateSwitchViewLink = () => {
|
||||
const { baseUrl, selectedBranch, branches } = this.props;
|
||||
if (selectedBranch && branches?.filter(b => b.name === selectedBranch).length !== 0) {
|
||||
if (branches && selectedBranch && branches?.filter(b => b.name === selectedBranch).length !== 0) {
|
||||
return `${baseUrl}/branch/${encodeURIComponent(selectedBranch)}/changesets/`;
|
||||
}
|
||||
return `${baseUrl}/changesets/`;
|
||||
|
||||
Reference in New Issue
Block a user