mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Fixed hiding of branch drop down when there are no branches
This commit is contained in:
@@ -95,7 +95,7 @@ export function getBranchesForNamespaceAndNameFromState(namespace: string, name:
|
||||
|
||||
export function getBranchNames(namespace: string, name: string, state: Object) {
|
||||
const key = namespace + "/" + name;
|
||||
if (!state.branches[key]) {
|
||||
if (!state.branches[key] || !state.branches[key].byNames) {
|
||||
return null;
|
||||
}
|
||||
return Object.keys(state.branches[key].byNames);
|
||||
|
||||
Reference in New Issue
Block a user