Publish: restore "you have not published anything yet" message

This commit is contained in:
Alex Liebowitz 2017-02-24 04:22:44 -05:00
parent b041d66ee4
commit 041771f07b

View file

@ -75,6 +75,12 @@ export let FileListPublished = React.createClass({
document.title = "Published Files";
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
* occur in claimInfos, so the order is preserved even if the API calls inside this loop