fixed identifier parse error on asset details component
This commit is contained in:
parent
7600ff5c54
commit
7b4b5da428
2 changed files with 3 additions and 17 deletions
|
@ -7,20 +7,6 @@ module.exports = {
|
||||||
if (error.code === 'ECONNREFUSED') {
|
if (error.code === 'ECONNREFUSED') {
|
||||||
status = 200;
|
status = 200;
|
||||||
message = 'Connection refused. The daemon may not be running.';
|
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
|
// check for thrown errors
|
||||||
} else if (error.message) {
|
} else if (error.message) {
|
||||||
status = 200;
|
status = 200;
|
||||||
|
|
|
@ -21,11 +21,11 @@ class ShowAsset extends React.Component {
|
||||||
// create request params
|
// create request params
|
||||||
let body = {};
|
let body = {};
|
||||||
if (modifier) {
|
if (modifier) {
|
||||||
if (modifier.channel) {
|
if (modifier.id) {
|
||||||
|
body['claimId'] = modifier.id;
|
||||||
|
} else {
|
||||||
body['channelName'] = modifier.channel.name;
|
body['channelName'] = modifier.channel.name;
|
||||||
body['channelClaimId'] = modifier.channel.id;
|
body['channelClaimId'] = modifier.channel.id;
|
||||||
} else {
|
|
||||||
body['claimId'] = modifier.id;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
body['claimName'] = name;
|
body['claimName'] = name;
|
||||||
|
|
Loading…
Reference in a new issue