From e9b85e1a9aeaeb94fb3dd2e681aa0027ea315943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 21 May 2024 12:06:08 +0200 Subject: [PATCH] damn totalBrews won't go away --- client/homebrew/pages/archivePage/archivePage.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/homebrew/pages/archivePage/archivePage.jsx b/client/homebrew/pages/archivePage/archivePage.jsx index e23af7b26..17dba86fb 100644 --- a/client/homebrew/pages/archivePage/archivePage.jsx +++ b/client/homebrew/pages/archivePage/archivePage.jsx @@ -91,7 +91,6 @@ const ArchivePage = createClass({ pageSize: size, v3: v3, legacy: legacy, - totalBrews: null, }); this.updateUrl(title, page, size, v3, legacy); } @@ -119,11 +118,11 @@ const ArchivePage = createClass({ loadTotal: async function () { console.log('running loadTotal'); const { title, v3, legacy } = this.state; + this.setState({ + totalBrews: null, + }); if (title !== '') { - this.setState({ - totalBrews: null, - }); try { await request .get(