hide edit link for anonymous publishes
This commit is contained in:
parent
24626bcb02
commit
e784897afe
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue