From 3f7391fc07528ae1d0dba836dfc9bd4bf7417c92 Mon Sep 17 00:00:00 2001 From: hackrush Date: Sun, 27 Aug 2017 10:30:44 +0530 Subject: [PATCH] Fixed regression in #501 --- CHANGELOG.md | 1 + ui/js/component/fileList/view.jsx | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07a692d4a..79accb678 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ Web UI version numbers should always match the corresponding version of LBRY App ### Fixed * Corrected improper pluralization on loading screen + * Regression in #501 diff --git a/ui/js/component/fileList/view.jsx b/ui/js/component/fileList/view.jsx index c92dae016..d8d0d446f 100644 --- a/ui/js/component/fileList/view.jsx +++ b/ui/js/component/fileList/view.jsx @@ -51,6 +51,14 @@ class FileList extends React.PureComponent { }; } + getChannelSignature(fileInfo) { + if (fileInfo.value) { + return fileInfo.value.publisherSignature.certificateId; + } else { + return fileInfo.metadata.publisherSignature.certificateId; + } + } + handleSortChanged(event) { this.setState({ sortBy: event.target.value, @@ -69,7 +77,7 @@ class FileList extends React.PureComponent { 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; + uriParams.claimId = this.getChannelSignature(fileInfo); } else { uriParams.claimId = fileInfo.claim_id; uriParams.name = fileInfo.name;