diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 991c050..a9041ea 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -4153,7 +4153,6 @@ function doUpdateChannel(params, cb) { } // we'll need to remove these once we add locations/channels to channel page edit/create options - if (channelClaim && channelClaim.value && channelClaim.value.locations) { updateParams.locations = channelClaim.value.locations; } @@ -4187,7 +4186,7 @@ function doImportChannel(certificate) { type: IMPORT_CHANNEL_STARTED }); - return lbryProxy.channel_import({ channel_data: certificate }).then(result => { + return lbryProxy.channel_import({ channel_data: certificate }).then(() => { dispatch({ type: IMPORT_CHANNEL_COMPLETED }); diff --git a/dist/flow-typed/Collections.js b/dist/flow-typed/Collections.js index 927cef7..f70825a 100644 --- a/dist/flow-typed/Collections.js +++ b/dist/flow-typed/Collections.js @@ -5,7 +5,7 @@ declare type Collection = { type: string, updatedAt: number, totalItems?: number, - sourceid?: string, // if copied, claimId of original collection + sourceId?: string, // if copied, claimId of original collection }; declare type CollectionState = { diff --git a/flow-typed/Collections.js b/flow-typed/Collections.js index 927cef7..f70825a 100644 --- a/flow-typed/Collections.js +++ b/flow-typed/Collections.js @@ -5,7 +5,7 @@ declare type Collection = { type: string, updatedAt: number, totalItems?: number, - sourceid?: string, // if copied, claimId of original collection + sourceId?: string, // if copied, claimId of original collection }; declare type CollectionState = { diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index ca39046..cee7c13 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -10,8 +10,6 @@ import { selectClaimsByUri, selectMyChannelClaims, selectPendingIds, - selectClaimsById, - makeSelectClaimForClaimId, } from 'redux/selectors/claims'; import { doFetchTxoPage } from 'redux/actions/wallet'; @@ -21,7 +19,6 @@ import { batchActions } from 'util/batch-actions'; import { createNormalizedClaimSearchKey } from 'util/claim'; import { PAGE_SIZE } from 'constants/claim'; import { - makeSelectEditedCollectionForId, selectPendingCollections, } from 'redux/selectors/collections'; import { @@ -30,8 +27,6 @@ import { doCollectionDelete, } from 'redux/actions/collections'; -type ResolveEntries = Array<[string, GenericClaim]>; - export function doResolveUris( uris: Array, returnCachedClaims: boolean = false, @@ -79,9 +74,8 @@ export function doResolveUris( const collectionIds: Array = []; return Lbry.resolve({ urls: urisToResolve, ...options }).then( - async (result: ResolveResponse) => { + async(result: ResolveResponse) => { let repostedResults = {}; - const collectionClaimIdsToResolve = []; const repostsToResolve = []; const fallbackResolveInfo = { stream: null, @@ -518,7 +512,6 @@ export function doUpdateChannel(params: any, cb: any) { } // we'll need to remove these once we add locations/channels to channel page edit/create options - if (channelClaim && channelClaim.value && channelClaim.value.locations) { updateParams.locations = channelClaim.value.locations; } @@ -556,7 +549,7 @@ export function doImportChannel(certificate: string) { }); return Lbry.channel_import({ channel_data: certificate }) - .then((result: string) => { + .then(() => { dispatch({ type: ACTIONS.IMPORT_CHANNEL_COMPLETED, }); @@ -653,7 +646,7 @@ export function doClaimSearch( } ) { const query = createNormalizedClaimSearchKey(options); - return async (dispatch: Dispatch) => { + return async(dispatch: Dispatch) => { dispatch({ type: ACTIONS.CLAIM_SEARCH_STARTED, data: { query: query },