fix encoding and decoding for branches including slashes

This commit is contained in:
Eduard Heimbuch
2019-11-01 13:52:53 +01:00
parent 557856185a
commit d5bd83fafb
3 changed files with 12 additions and 7 deletions

View File

@@ -16,10 +16,10 @@ export function fetchSources(repository: Repository, revision: string, path: str
.get(createUrl(repository, revision, path))
.then(response => response.json())
.then(sources => {
dispatch(fetchSourcesSuccess(repository, decodeURIComponent(revision), path, sources));
dispatch(fetchSourcesSuccess(repository, revision, path, sources));
})
.catch(err => {
dispatch(fetchSourcesFailure(repository, decodeURIComponent(revision), path, err));
dispatch(fetchSourcesFailure(repository, revision, path, err));
});
};
}