Revamp API wrapper code #10
1 changed files with 4 additions and 4 deletions
|
@ -160,13 +160,13 @@ export let FileList = React.createClass({
|
||||||
seenUris = {};
|
seenUris = {};
|
||||||
|
|
||||||
const fileInfosSorted = this._sortFunctions[this.state.sortBy](this.props.fileInfos);
|
const fileInfosSorted = this._sortFunctions[this.state.sortBy](this.props.fileInfos);
|
||||||
for (let {lbry_uri, outpoint, metadata} of fileInfosSorted) {
|
for (let {name, outpoint, metadata} of fileInfosSorted) {
|
||||||
if (!metadata || seenUris[lbry_uri]) {
|
if (!metadata || seenUris[name]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
seenUris[lbry_uri] = true;
|
seenUris[name] = true;
|
||||||
content.push(<FileTileStream key={lbry_uri} name={lbry_uri} hideOnRemove={true} outpoint={outpoint}
|
content.push(<FileTileStream key={outpoint} outpoint={outpoint} name={name} hideOnRemove={true}
|
||||||
hidePrice={this.props.hidePrices} metadata={metadata} />);
|
hidePrice={this.props.hidePrices} metadata={metadata} />);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue