This commit is contained in:
zeppi 2021-08-03 15:28:26 -04:00
parent 658dad7463
commit 699a7e8a3b

11
dist/bundle.es.js vendored
View file

@ -7718,8 +7718,15 @@ const collectionsReducer = handleActions({
[COLLECTION_PENDING]: (state, action) => {
const { localId, claimId } = action.data;
const { edited: editList, unpublished: unpublishedList, pending: pendingList } = state;
const {
resolved: resolvedList,
edited: editList,
unpublished: unpublishedList,
pending: pendingList
} = state;
const newEditList = Object.assign({}, editList);
const newResolvedList = Object.assign({}, resolvedList);
const newUnpublishedList = Object.assign({}, unpublishedList);
const newPendingList = Object.assign({}, pendingList);
@ -7729,7 +7736,7 @@ const collectionsReducer = handleActions({
delete newUnpublishedList[localId];
} else {
// edit update
newPendingList[claimId] = Object.assign({}, newEditList[claimId]);
newPendingList[claimId] = Object.assign({}, newEditList[claimId] || newResolvedList[claimId]);
delete newEditList[claimId];
}