1
0
mirror of https://github.com/C9Glax/tranga-website.git synced 2025-04-27 18:52:26 +02:00

Fix search not working on enter

This commit is contained in:
glax 2024-10-20 00:05:13 +02:00
parent 59dff529ef
commit 035d384411

@ -55,8 +55,7 @@ export default function Search({onJobsChanged, closeSearch} : {onJobsChanged: Ev
}
}
const ExecuteSearch : EventHandler<any> = (event) => {
event.preventDefault();
const ExecuteSearch : EventHandler<any> = () => {
if(searchBoxValue.length < 1 || selectedConnector === undefined || selectedLanguage === ""){
console.error("Tried initiating search while not all fields where submitted.")
return;