Fixed hiding of branch drop down when there are no branches

This commit is contained in:
Philipp Czora
2018-09-18 15:07:30 +02:00
parent 75767bde69
commit 732a84bb7c
3 changed files with 22 additions and 19 deletions

View File

@@ -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);