diff --git a/app/filtering/page.jsx b/app/filtering/page.jsx index 6ffe779..6b848fb 100644 --- a/app/filtering/page.jsx +++ b/app/filtering/page.jsx @@ -13,7 +13,7 @@ function Filtering(props) { const [speciesData, setSpeciesData] = useState(null); function sendData() { - fetch(`/.netlify/functions/filtering?${plantId}`) + fetch(`/.netlify/functions/filtering?q=${plantId}`) .then((res) => res.json()) .then((data) => setSpeciesData(data)) .catch((error) => console.error("Error:", error));