From 34b20795e387957b073a5beeb8e8e1725598a178 Mon Sep 17 00:00:00 2001 From: zeppi Date: Sun, 22 Aug 2021 16:22:40 -0400 Subject: [PATCH] cleanup --- dist/bundle.es.js | 2 +- src/redux/actions/claims.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 33c7574..12358cb 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -4468,7 +4468,6 @@ function doCollectionPublish(options, localId) { function doCollectionPublishUpdate(options, isBackgroundUpdate) { return (dispatch, getState) => { // TODO: implement one click update - const state = getState(); const updateParams = isBackgroundUpdate ? { blocking: true, @@ -4488,6 +4487,7 @@ function doCollectionPublishUpdate(options, isBackgroundUpdate) { }; if (isBackgroundUpdate && updateParams.claim_id) { + const state = getState(); updateParams['claims'] = makeSelectClaimIdsForCollectionId(updateParams.claim_id)(state); } else if (options.claims) { updateParams['claims'] = options.claims; diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index d53555f..f5bf190 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -847,7 +847,6 @@ export function doCollectionPublishUpdate( ) { return (dispatch: Dispatch, getState: GetState): Promise => { // TODO: implement one click update - const state = getState(); const updateParams: { bid?: string, @@ -880,6 +879,7 @@ export function doCollectionPublishUpdate( }; if (isBackgroundUpdate && updateParams.claim_id) { + const state = getState(); updateParams['claims'] = makeSelectClaimIdsForCollectionId(updateParams.claim_id)(state); } else if (options.claims) { updateParams['claims'] = options.claims;