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) => {
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;