[redesign] moar fixes #1236
1 changed files with 14 additions and 3 deletions
|
@ -22,6 +22,8 @@ type FileInfo = {
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
hideFilter: boolean,
|
hideFilter: boolean,
|
||||||
|
sortByHeight?: boolean,
|
||||||
|
claimsById: Array<{}>,
|
||||||
fileInfos: Array<FileInfo>,
|
fileInfos: Array<FileInfo>,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -141,16 +143,25 @@ class FileList extends React.PureComponent<Props, State> {
|
||||||
const content = [];
|
const content = [];
|
||||||
|
|
||||||
this.sortFunctions[sortBy](fileInfos).forEach(fileInfo => {
|
this.sortFunctions[sortBy](fileInfos).forEach(fileInfo => {
|
||||||
const { channel_name: channelName, name: claimName, claim_id: claimId } = fileInfo;
|
const {
|
||||||
|
channel_name: channelName,
|
||||||
|
name: claimName,
|
||||||
|
claim_name: claimNameDownloaded,
|
||||||
|
claim_id: claimId,
|
||||||
|
} = fileInfo;
|
||||||
const uriParams = {};
|
const uriParams = {};
|
||||||
|
|
||||||
|
// This is unfortunate
|
||||||
|
// https://github.com/lbryio/lbry/issues/1159
|
||||||
|
const name = claimName || claimNameDownloaded;
|
||||||
|
|
||||||
if (channelName) {
|
if (channelName) {
|
||||||
uriParams.channelName = channelName;
|
uriParams.channelName = channelName;
|
||||||
uriParams.contentName = claimName;
|
uriParams.contentName = name;
|
||||||
uriParams.claimId = this.getChannelSignature(fileInfo);
|
uriParams.claimId = this.getChannelSignature(fileInfo);
|
||||||
} else {
|
} else {
|
||||||
uriParams.claimId = claimId;
|
uriParams.claimId = claimId;
|
||||||
uriParams.claimName = claimName;
|
uriParams.claimName = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
const uri = buildURI(uriParams);
|
const uri = buildURI(uriParams);
|
||||||
|
|
Loading…
Reference in a new issue