My Files: don't check stream availability when URI is absent

Previously this was failing silently, but with the new error modals
it started popping up error messages.
This commit is contained in:
Alex Liebowitz 2016-11-10 07:33:57 -05:00 committed by Alex Work
parent f346739bfb
commit c6104516e7

View file

@ -225,6 +225,10 @@ var MyFilesPage = React.createClass({
for (let fileInfo of filesInfo) { for (let fileInfo of filesInfo) {
let name = fileInfo.lbry_uri; let name = fileInfo.lbry_uri;
if (name === null) {
continue;
}
lbry.lighthouse.search(name, (results) => { lbry.lighthouse.search(name, (results) => {
var result = results[0]; var result = results[0];