From a1cb16400dcfa348bb5ea487e285a362eb09f0fb Mon Sep 17 00:00:00 2001 From: zeppi Date: Wed, 2 Jun 2021 15:20:55 -0400 Subject: [PATCH] bugfix --- dist/bundle.es.js | 10 +++++----- src/constants/collections.js | 2 +- src/redux/actions/claims.js | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index bc5a24f..fce5cae 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -1044,7 +1044,7 @@ const COLLECTION_ID = 'colid'; const COLLECTION_INDEX = 'colindex'; const COL_TYPE_PLAYLIST = 'playlist'; -const COL_TYPE_CHANNELS = 'channelCollection'; +const COL_TYPE_CHANNELS = 'channelList'; const WATCH_LATER_ID = 'watchlater'; const FAVORITES_ID = 'favorites'; @@ -4397,7 +4397,7 @@ function doCollectionPublish(options, localId) { })); dispatch(doCheckPendingClaims()); dispatch(doFetchCollectionListMine(1, 10)); - return collectionClaim; + return resolve(collectionClaim); } function failure(error) { @@ -4409,7 +4409,7 @@ function doCollectionPublish(options, localId) { }); } - lbryProxy.collection_create(params).then(success, failure); + return lbryProxy.collection_create(params).then(success, failure); }); }; } @@ -4463,7 +4463,7 @@ function doCollectionPublishUpdate(options) { }); dispatch(doCheckPendingClaims()); dispatch(doFetchCollectionListMine(1, 10)); - return collectionClaim; + return resolve(collectionClaim); } function failure(error) { @@ -4475,7 +4475,7 @@ function doCollectionPublishUpdate(options) { }); } - lbryProxy.collection_update(updateParams).then(success, failure); + return lbryProxy.collection_update(updateParams).then(success, failure); }); }; } diff --git a/src/constants/collections.js b/src/constants/collections.js index d4c1739..0d53c94 100644 --- a/src/constants/collections.js +++ b/src/constants/collections.js @@ -2,7 +2,7 @@ export const COLLECTION_ID = 'colid'; export const COLLECTION_INDEX = 'colindex'; export const COL_TYPE_PLAYLIST = 'playlist'; -export const COL_TYPE_CHANNELS = 'channelCollection'; +export const COL_TYPE_CHANNELS = 'channelList'; export const WATCH_LATER_ID = 'watchlater'; export const FAVORITES_ID = 'favorites'; diff --git a/src/redux/actions/claims.js b/src/redux/actions/claims.js index e3a47af..56cc212 100644 --- a/src/redux/actions/claims.js +++ b/src/redux/actions/claims.js @@ -816,7 +816,7 @@ export function doCollectionPublish( ); dispatch(doCheckPendingClaims()); dispatch(doFetchCollectionListMine(1, 10)); - return collectionClaim; + return resolve(collectionClaim); } function failure(error) { @@ -828,7 +828,7 @@ export function doCollectionPublish( }); } - Lbry.collection_create(params).then(success, failure); + return Lbry.collection_create(params).then(success, failure); }); }; } @@ -903,7 +903,7 @@ export function doCollectionPublishUpdate(options: { }); dispatch(doCheckPendingClaims()); dispatch(doFetchCollectionListMine(1, 10)); - return collectionClaim; + return resolve(collectionClaim); } function failure(error) { @@ -915,7 +915,7 @@ export function doCollectionPublishUpdate(options: { }); } - Lbry.collection_update(updateParams).then(success, failure); + return Lbry.collection_update(updateParams).then(success, failure); }); }; }