Fix search not working on enter

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

View File

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