From f0891dd298b1f311a37c4713d2db009f62088b09 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 21 Jan 2020 13:33:24 -0500 Subject: [PATCH] fix publishing --- dist/bundle.es.js | 2 +- src/redux/actions/publish.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 1c6a34a..4163f5b 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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) { diff --git a/src/redux/actions/publish.js b/src/redux/actions/publish.js index 5a770d9..fb00179 100644 --- a/src/redux/actions/publish.js +++ b/src/redux/actions/publish.js @@ -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) {