From eaef58751d76f16bd8f2ca2c93a552cb7c3fd954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Catarino?= Date: Mon, 12 Sep 2022 17:46:46 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20dashdot=20params=20on=20api=20ca?= =?UTF-8?q?ll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 dashdot params on api call --- src/modules/dashdot/DashdotModule.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dashdot/DashdotModule.tsx b/src/modules/dashdot/DashdotModule.tsx index b3b89adbd..c3a91ee63 100644 --- a/src/modules/dashdot/DashdotModule.tsx +++ b/src/modules/dashdot/DashdotModule.tsx @@ -98,7 +98,7 @@ const useJson = (targetUrl: string, url: string) => { const doRequest = async () => { try { - const resp = await axios.get(`/api/modules/dashdot?url=${url}&base=${targetUrl}`); + const resp = await axios.get('/api/modules/dashdot',{ params: { url, base: targetUrl } }); setData(resp.data); // eslint-disable-next-line no-empty