From bdfd194672a9e19516d36d083ac10bf6d85d0c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Thu, 13 Jun 2024 01:13:38 +0200 Subject: [PATCH] changed order of params per request --- client/homebrew/pages/vaultPage/vaultPage.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/homebrew/pages/vaultPage/vaultPage.jsx b/client/homebrew/pages/vaultPage/vaultPage.jsx index 19d65e8f3..2ed360f4b 100644 --- a/client/homebrew/pages/vaultPage/vaultPage.jsx +++ b/client/homebrew/pages/vaultPage/vaultPage.jsx @@ -47,7 +47,7 @@ const VaultPage = (props) => { const url = new URL(window.location.href); const urlParams = new URLSearchParams(); - Object.entries({ title, page, count, v3, legacy }).forEach( + Object.entries({ title, v3, legacy, count, page }).forEach( ([key, value]) => urlParams.set(key, value) ); @@ -64,7 +64,7 @@ const VaultPage = (props) => { if (title !== '') { try { const response = await request.get( - `/api/vault?title=${title}&page=${page}&count=${count}&v3=${v3}&legacy=${legacy}` + `/api/vault?title=${title}&v3=${v3}&legacy=${legacy}&count=${count}&page=${page}` ); if (response.ok) { updateStateWithBrews(response.body.brews, page);