From 7b4b5da4289b5f31da9459f182044e5a5d2e392c Mon Sep 17 00:00:00 2001 From: bill bittner Date: Fri, 2 Feb 2018 13:02:30 -0800 Subject: [PATCH] fixed identifier parse error on asset details component --- helpers/errorHandlers.js | 14 -------------- react/containers/ShowAsset/view.jsx | 6 +++--- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/helpers/errorHandlers.js b/helpers/errorHandlers.js index 8077cfa3..9cccd7be 100644 --- a/helpers/errorHandlers.js +++ b/helpers/errorHandlers.js @@ -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; diff --git a/react/containers/ShowAsset/view.jsx b/react/containers/ShowAsset/view.jsx index 1b75753a..67fcc97f 100644 --- a/react/containers/ShowAsset/view.jsx +++ b/react/containers/ShowAsset/view.jsx @@ -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;