Fix search not working on enter
This commit is contained in:
parent
59dff529ef
commit
035d384411
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user