Two file info fixes since last merge

This commit is contained in:
6ea86b96 2017-06-27 15:23:03 +07:00
parent fabfc06703
commit 78be53806b
No known key found for this signature in database
GPG key ID: B282D183E4931E8F
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ reducers[types.DOWNLOADING_PROGRESSED] = function(state, action) {
const newByOutpoint = Object.assign({}, state.byOutpoint);
const newDownloading = Object.assign({}, state.urisDownloading);
byOutpoint[outpoint] = fileInfo;
newByOutpoint[outpoint] = fileInfo;
newDownloading[uri] = true;
return Object.assign({}, state, {

View file

@ -119,7 +119,7 @@ export const selectFileInfosPublished = createSelector(
export const selectFileInfosByUri = createSelector(
selectClaimsByUri,
selectAllFileInfos,
selectFileInfosByOutpoint,
(claimsByUri, byOutpoint) => {
const fileInfos = {};
const uris = Object.keys(claimsByUri);