fixed identifier parse error on asset details component

This commit is contained in:
bill bittner 2018-02-02 13:02:30 -08:00
commit 7b4b5da428
2 changed files with 3 additions and 17 deletions
react/containers/ShowAsset

View file

@ -21,11 +21,11 @@ class ShowAsset extends React.Component {
// create request params
let body = {};
if (modifier) {
if (modifier.channel) {
if (modifier.id) {
body['claimId'] = modifier.id;
} else {
body['channelName'] = modifier.channel.name;
body['channelClaimId'] = modifier.channel.id;
} else {
body['claimId'] = modifier.id;
}
}
body['claimName'] = name;