From f38a15ee0d0b28fbb357a845b4fb29b2d767d17c Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Fri, 24 Sep 2021 15:01:51 +0800 Subject: [PATCH] Blocklist page: fix perpetual spinner when trying to refresh with no channels There's nothing to do when you don't have a channel, so hide the button and ensure redux fails gracefully. --- ui/page/listBlocked/view.jsx | 20 +++++++++++--------- ui/redux/actions/comments.js | 8 ++++++++ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/ui/page/listBlocked/view.jsx b/ui/page/listBlocked/view.jsx index a14f81801..8048ee9f9 100644 --- a/ui/page/listBlocked/view.jsx +++ b/ui/page/listBlocked/view.jsx @@ -221,15 +221,17 @@ function ListBlocked(props: Props) { function getRefreshElem() { return ( -