mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-28 16:01:26 +00:00
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() {
|
getFilesOwnership: function() {
|
||||||
lbry.getFilesInfo((filesInfo) => {
|
lbry.getFilesInfo((filesInfo) => {
|
||||||
|
if (!filesInfo) {
|
||||||
|
this.setState({
|
||||||
|
filesOwnershipLoaded: true,
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var ownershipLoadedCount = 0;
|
var ownershipLoadedCount = 0;
|
||||||
for (let i = 0; i < filesInfo.length; i++) {
|
for (let i = 0; i < filesInfo.length; i++) {
|
||||||
let fileInfo = filesInfo[i];
|
let fileInfo = filesInfo[i];
|
||||||
|
|
Loading…
Add table
Reference in a new issue