Skip to content

Commit

Permalink
Forgot to add q= to the filtering page
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanahye committed Nov 17, 2023
1 parent ad9498c commit d3ef541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/filtering/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d3ef541

Please sign in to comment.