From d069aa0d8c1a620ebcad7d3227cc8bad5086530f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rave=20=7C=20=E5=9B=B3=E6=9B=B8=E9=A4=A8=E7=8C=AB?= Date: Mon, 7 Aug 2023 18:19:34 +0200 Subject: [PATCH] Reload comments on channel page even if state is not empty --- ui/component/commentsList/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/commentsList/view.jsx b/ui/component/commentsList/view.jsx index 3eca46cf74..898433f0b8 100644 --- a/ui/component/commentsList/view.jsx +++ b/ui/component/commentsList/view.jsx @@ -241,7 +241,7 @@ export default function CommentList(props: Props & StateProps & DispatchProps) { // Force comments reset useEffect(() => { - if (page === 0) { + if (page >= 0) { handleReset(); } }, [handleReset, page]);