fixed identifier parse error on asset details component

This commit is contained in:
bill bittner 2018-02-02 13:02:30 -08:00
parent 7600ff5c54
commit 7b4b5da428
2 changed files with 3 additions and 17 deletions

View file

@ -7,20 +7,6 @@ module.exports = {
if (error.code === 'ECONNREFUSED') {
status = 200;
message = 'Connection refused. The daemon may not be running.';
// // check for errors from the daemon
// } else if (error.response) {
// status = error.response.status || 500;
// if (error.response.data) {
// if (error.response.data.message) {
// message = error.response.data.message;
// } else if (error.response.data.error) {
// message = error.response.data.error.message;
// } else {
// message = error.response.data;
// }
// } else {
// message = error.response;
// }
// check for thrown errors
} else if (error.message) {
status = 200;

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;