Revamp API wrapper code #10

Merged
alexliebowitz merged 5 commits from new-api-wrapper into master 2017-03-10 09:57:43 +01:00
Showing only changes of commit a5feefe294 - Show all commits

View file

@ -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} />);
} }