diff --git a/react/api/channelApi.js b/react/api/channelApi.js index 859af0c7..67ac5259 100644 --- a/react/api/channelApi.js +++ b/react/api/channelApi.js @@ -1,11 +1,11 @@ -import request from 'utils/request'; +import Request from 'utils/request'; const { site: { host } } = require('../../config/speechConfig.js'); export function getChannelData (name, id) { console.log('getting channel data for channel:', name, id); if (!id) id = 'none'; const url = `${host}/api/channel/data/${name}/${id}`; - return request(url); + return Request(url); }; export function getChannelClaims (name, longId, page) { diff --git a/react/components/ShowAssetDetails/view.jsx b/react/components/ShowAssetDetails/view.jsx index af3e168a..1f3b3ff5 100644 --- a/react/components/ShowAssetDetails/view.jsx +++ b/react/components/ShowAssetDetails/view.jsx @@ -12,11 +12,11 @@ const { site: { title, host } } = require('../../../config/speechConfig.js'); class ShowAssetDetails extends React.Component { render () { const { asset } = this.props; - let channelName, certificateId, name, claimId; - if (asset.claimData) { - ({ channelName, certificateId, name, claimId } = asset.claimData); - }; if (asset) { + let channelName, certificateId, name, claimId; + if (asset.claimData) { + ({ channelName, certificateId, name, claimId } = asset.claimData); + }; return (