Implemented BranchChooser & selectors

This commit is contained in:
Philipp Czora
2018-10-05 09:55:17 +02:00
parent eaf8951164
commit 4ce2aae849
5 changed files with 85 additions and 54 deletions

View File

@@ -201,7 +201,11 @@ function extractChangesetsByIds(changesets: any, oldChangesetsByIds: any) {
}
//selectors
export function getChangesets(state: Object, repository, branch?: string) {
export function getChangesets(
state: Object,
repository: Repository,
branch?: string
) {
const key = createItemId(repository, branch);
if (!state.changesets.byKey[key]) {
return null;