From 2ad8960e2ffab14e0158d3fb01ffd9be28b9cefb Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Wed, 19 Oct 2016 20:29:35 -0400 Subject: [PATCH] My FIles: Don't get stuck on loading screen if no files are present --- js/page/my_files.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/page/my_files.js b/js/page/my_files.js index 6507afc22..fe60cbaa2 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -166,6 +166,13 @@ var MyFilesPage = React.createClass({ }, getFilesOwnership: function() { lbry.getFilesInfo((filesInfo) => { + if (!filesInfo) { + this.setState({ + filesOwnershipLoaded: true, + }); + return; + } + var ownershipLoadedCount = 0; for (let i = 0; i < filesInfo.length; i++) { let fileInfo = filesInfo[i];