From e784897afeac296367616a51f2983ecbca63cb41 Mon Sep 17 00:00:00 2001 From: Travis Eden Date: Tue, 16 Oct 2018 09:35:32 -0400 Subject: [PATCH] hide edit link for anonymous publishes --- client/src/containers/AssetInfo/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/containers/AssetInfo/index.js b/client/src/containers/AssetInfo/index.js index bc7a9229..c4f34eb6 100644 --- a/client/src/containers/AssetInfo/index.js +++ b/client/src/containers/AssetInfo/index.js @@ -6,7 +6,12 @@ const mapStateToProps = (props) => { const {show} = props; // select asset const asset = selectAsset(show); - const editable = Boolean(props.channel.loggedInChannel.name === asset.claimData.channelName); + const editable = Boolean( + asset && + asset.claimData && + asset.claimData.channelName && + props.channel.loggedInChannel.name === asset.claimData.channelName + ); // return props return { asset,