From 041771f07b9c7ebc8a1a0296f4ecdf2c80c230b0 Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 24 Feb 2017 04:22:44 -0500 Subject: [PATCH] Publish: restore "you have not published anything yet" message --- js/page/file-list.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/page/file-list.js b/js/page/file-list.js index 4fc862946..9420ff5f0 100644 --- a/js/page/file-list.js +++ b/js/page/file-list.js @@ -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