From ecfdada810c43cc08ef5bba45ef42034afbddf1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 21 May 2024 12:24:47 +0200 Subject: [PATCH] fix damn error finally --- client/homebrew/pages/archivePage/archivePage.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/homebrew/pages/archivePage/archivePage.jsx b/client/homebrew/pages/archivePage/archivePage.jsx index ee4ea3925..f271c2f95 100644 --- a/client/homebrew/pages/archivePage/archivePage.jsx +++ b/client/homebrew/pages/archivePage/archivePage.jsx @@ -117,7 +117,9 @@ const ArchivePage = createClass({ loadTotal: async function () { console.log('running loadTotal'); - const { title, v3, legacy } = this.state; + const title = document.getElementById('title').value || ''; + const v3 = document.getElementById('v3').checked; + const legacy = document.getElementById('legacy').checked; this.setState({ totalBrews: null, @@ -142,7 +144,6 @@ const ArchivePage = createClass({ this.updateStateWithBrews([], 1); } } - console.log('total brews in state in loadtotal: ', this.state.totalBrews); }, renderNavItems: function () { @@ -248,7 +249,6 @@ const ArchivePage = createClass({ Remember, you can only search brews with this tool if they are published - ); },