From a6dce0eccff555ca9ecc188070c69c4dfc5c8dac Mon Sep 17 00:00:00 2001 From: jessop Date: Tue, 26 May 2020 17:11:27 -0400 Subject: [PATCH] fix uploading state selector --- dist/bundle.es.js | 4 ++-- src/redux/selectors/claims.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 9e3c06a..e7ded8d 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -2612,8 +2612,8 @@ const selectUpdatingChannel = reselect.createSelector(selectState$2, state => st const selectUpdateChannelError = reselect.createSelector(selectState$2, state => state.updateChannelError); -const makeSelectReflectingClaimForUri = uri => reselect.createSelector(makeSelectClaimForUri(uri), selectReflectingById, (claim, reflectingById) => { - const claimId = claim && claim.claimId; +const makeSelectReflectingClaimForUri = uri => reselect.createSelector(selectClaimIdsByUri, selectReflectingById, (claimIdsByUri, reflectingById) => { + const claimId = claimIdsByUri[normalizeURI(uri)]; return reflectingById[claimId]; }); diff --git a/src/redux/selectors/claims.js b/src/redux/selectors/claims.js index 422530e..e2ced6c 100644 --- a/src/redux/selectors/claims.js +++ b/src/redux/selectors/claims.js @@ -785,10 +785,10 @@ export const selectUpdateChannelError = createSelector( export const makeSelectReflectingClaimForUri = (uri: string) => createSelector( - makeSelectClaimForUri(uri), + selectClaimIdsByUri, selectReflectingById, - (claim, reflectingById) => { - const claimId = claim && claim.claimId; + (claimIdsByUri, reflectingById) => { + const claimId = claimIdsByUri[normalizeURI(uri)]; return reflectingById[claimId]; } );