mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 16:31:33 +00:00
Publish: restore "you have not published anything yet" message
This commit is contained in:
parent
b041d66ee4
commit
041771f07b
1 changed files with 6 additions and 0 deletions
|
@ -75,6 +75,12 @@ export let FileListPublished = React.createClass({
|
||||||
document.title = "Published Files";
|
document.title = "Published Files";
|
||||||
|
|
||||||
lbry.getMyClaims((claimInfos) => {
|
lbry.getMyClaims((claimInfos) => {
|
||||||
|
if (claimInfos.length == 0) {
|
||||||
|
this.setState({
|
||||||
|
fileInfos: [],
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build newFileInfos as a sparse array and drop elements in at the same position they
|
* Build newFileInfos as a sparse array and drop elements in at the same position they
|
||||||
* occur in claimInfos, so the order is preserved even if the API calls inside this loop
|
* occur in claimInfos, so the order is preserved even if the API calls inside this loop
|
||||||
|
|
Loading…
Add table
Reference in a new issue