cleanup
This commit is contained in:
parent
d79b8ce226
commit
648fff0c6a
2 changed files with 3 additions and 16 deletions
16
dist/bundle.es.js
vendored
16
dist/bundle.es.js
vendored
|
@ -1223,18 +1223,6 @@ function buildURI(UrlObj, includeProto = true, protoDefault = 'lbry://') {
|
||||||
deprecatedParts = _objectWithoutProperties(UrlObj, ['streamName', 'streamClaimId', 'channelName', 'channelClaimId', 'primaryClaimSequence', 'primaryBidPosition', 'secondaryClaimSequence', 'secondaryBidPosition']);
|
deprecatedParts = _objectWithoutProperties(UrlObj, ['streamName', 'streamClaimId', 'channelName', 'channelClaimId', 'primaryClaimSequence', 'primaryBidPosition', 'secondaryClaimSequence', 'secondaryBidPosition']);
|
||||||
const { claimId, claimName, contentName } = deprecatedParts;
|
const { claimId, claimName, contentName } = deprecatedParts;
|
||||||
|
|
||||||
{
|
|
||||||
if (claimId) {
|
|
||||||
console.error(__("'claimId' should no longer be used. Use 'streamClaimId' or 'channelClaimId' instead"));
|
|
||||||
}
|
|
||||||
if (claimName) {
|
|
||||||
console.error(__("'claimName' should no longer be used. Use 'streamClaimName' or 'channelClaimName' instead"));
|
|
||||||
}
|
|
||||||
if (contentName) {
|
|
||||||
console.error(__("'contentName' should no longer be used. Use 'streamName' instead"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!claimName && !channelName && !streamName) {
|
if (!claimName && !channelName && !streamName) {
|
||||||
console.error(__("'claimName', 'channelName', and 'streamName' are all empty. One must be present to build a url."));
|
console.error(__("'claimName', 'channelName', and 'streamName' are all empty. One must be present to build a url."));
|
||||||
}
|
}
|
||||||
|
@ -3470,8 +3458,8 @@ const selectIsStillEditing = reselect.createSelector(selectState$5, publishState
|
||||||
});
|
});
|
||||||
|
|
||||||
const selectPublishFormValues = reselect.createSelector(selectState$5, selectIsStillEditing, (state, isStillEditing) => {
|
const selectPublishFormValues = reselect.createSelector(selectState$5, selectIsStillEditing, (state, isStillEditing) => {
|
||||||
const { language, languages } = state;
|
const { pendingPublish, language, languages } = state,
|
||||||
const formValues = _objectWithoutProperties$2(state, ['pendingPublish']);
|
formValues = _objectWithoutProperties$2(state, ['pendingPublish', 'language', 'languages']);
|
||||||
|
|
||||||
let actualLanguage;
|
let actualLanguage;
|
||||||
// Sets default if editing a claim with a set language
|
// Sets default if editing a claim with a set language
|
||||||
|
|
|
@ -42,8 +42,7 @@ export const selectPublishFormValues = createSelector(
|
||||||
selectState,
|
selectState,
|
||||||
selectIsStillEditing,
|
selectIsStillEditing,
|
||||||
(state, isStillEditing) => {
|
(state, isStillEditing) => {
|
||||||
const { language, languages } = state;
|
const { pendingPublish, language, languages, ...formValues } = state;
|
||||||
const { pendingPublish, ...formValues } = state;
|
|
||||||
|
|
||||||
let actualLanguage;
|
let actualLanguage;
|
||||||
// Sets default if editing a claim with a set language
|
// Sets default if editing a claim with a set language
|
||||||
|
|
Loading…
Add table
Reference in a new issue