My FIles: Don't get stuck on loading screen if no files are present
This commit is contained in:
parent
48d30a5cb7
commit
2ad8960e2f
1 changed files with 7 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue