fix publishing

This commit is contained in:
Sean Yesmunt 2020-01-21 13:33:24 -05:00
parent 24c6dc1177
commit f0891dd298
2 changed files with 2 additions and 2 deletions

2
dist/bundle.es.js vendored
View file

@ -3749,7 +3749,7 @@ const doPublish = (success, fail) => (dispatch, getState) => {
locations
} = publishData;
// Handle scenario where we have a claim that has the same name as a channel we are publishing with.
const myClaimForUriEditing = myClaimForUri.name === name ? myClaimForUri : null;
const myClaimForUriEditing = myClaimForUri && myClaimForUri.name === name ? myClaimForUri : null;
let publishingLicense;
switch (licenseType) {

View file

@ -266,7 +266,7 @@ export const doPublish = (success: Function, fail: Function) => (
locations,
} = publishData;
// Handle scenario where we have a claim that has the same name as a channel we are publishing with.
const myClaimForUriEditing = myClaimForUri.name === name ? myClaimForUri : null;
const myClaimForUriEditing = myClaimForUri && myClaimForUri.name === name ? myClaimForUri : null;
let publishingLicense;
switch (licenseType) {