From 17203a2a934bb40dbe082d11d47049721720b798 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 2 Jul 2018 14:23:19 -0400 Subject: [PATCH] use outpoint as key in FileList --- src/renderer/component/fileList/view.jsx | 10 ++++++++-- src/renderer/page/fileListDownloaded/view.jsx | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/renderer/component/fileList/view.jsx b/src/renderer/component/fileList/view.jsx index cf1b22ae8..5c1c4e6a4 100644 --- a/src/renderer/component/fileList/view.jsx +++ b/src/renderer/component/fileList/view.jsx @@ -152,7 +152,12 @@ class FileList extends React.PureComponent { } this.sortFunctions[sortBy](fileInfos).forEach(fileInfo => { - const { name: claimName, claim_name: claimNameDownloaded, claim_id: claimId } = fileInfo; + const { + name: claimName, + claim_name: claimNameDownloaded, + claim_id: claimId, + outpoint, + } = fileInfo; const uriParams = {}; // This is unfortunate @@ -162,7 +167,8 @@ class FileList extends React.PureComponent { uriParams.claimId = claimId; const uri = buildURI(uriParams); - content.push(); + // See https://github.com/lbryio/lbry-app/issues/1327 for discussion around using outpoint as the key + content.push(); }); return ( diff --git a/src/renderer/page/fileListDownloaded/view.jsx b/src/renderer/page/fileListDownloaded/view.jsx index f6b977468..4b53fc668 100644 --- a/src/renderer/page/fileListDownloaded/view.jsx +++ b/src/renderer/page/fileListDownloaded/view.jsx @@ -1,6 +1,5 @@ import React from 'react'; import Button from 'component/button'; -import { FileTile } from 'component/fileTile'; import FileList from 'component/fileList'; import Page from 'component/page'; -- 2.45.2