Fixed regression in #501

This commit is contained in:
hackrush 2017-08-27 10:30:44 +05:30
parent fb2b37c4f1
commit 3f7391fc07
2 changed files with 10 additions and 1 deletions

View file

@ -58,6 +58,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
### Fixed ### Fixed
* Corrected improper pluralization on loading screen * Corrected improper pluralization on loading screen
* Regression in #501

View file

@ -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) { handleSortChanged(event) {
this.setState({ this.setState({
sortBy: event.target.value, sortBy: event.target.value,
@ -69,7 +77,7 @@ class FileList extends React.PureComponent {
uriParams.channelName = fileInfo.channel_name; uriParams.channelName = fileInfo.channel_name;
uriParams.contentName = fileInfo.name; uriParams.contentName = fileInfo.name;
// The following can be done as certificateID of a claim is nothing but the claimID of the channel. // 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 { } else {
uriParams.claimId = fileInfo.claim_id; uriParams.claimId = fileInfo.claim_id;
uriParams.name = fileInfo.name; uriParams.name = fileInfo.name;