hide edit link for anonymous publishes

This commit is contained in:
Travis Eden 2018-10-16 09:35:32 -04:00
parent 24626bcb02
commit e784897afe

View file

@ -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,