cleanup
This commit is contained in:
parent
e4fc01fc72
commit
6d160b3d14
4 changed files with 6 additions and 14 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -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
|
||||
});
|
||||
|
|
2
dist/flow-typed/Collections.js
vendored
2
dist/flow-typed/Collections.js
vendored
|
@ -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 = {
|
||||
|
|
2
flow-typed/Collections.js
vendored
2
flow-typed/Collections.js
vendored
|
@ -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 = {
|
||||
|
|
|
@ -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<string>,
|
||||
returnCachedClaims: boolean = false,
|
||||
|
@ -79,9 +74,8 @@ export function doResolveUris(
|
|||
const collectionIds: Array<string> = [];
|
||||
|
||||
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 },
|
||||
|
|
Loading…
Reference in a new issue