From 90c83c62390e0769a6e21050e23e110844980a16 Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Mon, 28 Aug 2017 09:25:53 -0400 Subject: [PATCH] fix #460 again --- ui/js/component/fileList/view.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/js/component/fileList/view.jsx b/ui/js/component/fileList/view.jsx index c92dae016..4bdf1a3ea 100644 --- a/ui/js/component/fileList/view.jsx +++ b/ui/js/component/fileList/view.jsx @@ -68,8 +68,10 @@ class FileList extends React.PureComponent { if (fileInfo.channel_name) { uriParams.channelName = fileInfo.channel_name; uriParams.contentName = fileInfo.name; - // The following can be done as certificateID of a claim is nothing but the claimID of the channel. - uriParams.claimId = fileInfo.value.publisherSignature.certificateId; + if (fileInfo.value && fileInfo.publisherSignature) { + // The following can be done as certificateID of a claim is nothing but the claimID of the channel. + uriParams.claimId = fileInfo.value.publisherSignature.certificateId; + } } else { uriParams.claimId = fileInfo.claim_id; uriParams.name = fileInfo.name;