I'm doing a React + Springboot application. In some part of the app I have a four selectors and a button to search("Buscar"). Like this
What I'm trying to do is a conditional query depending on which values are selected. With this code below I can do the query if all the values are filled but if some is missing it throws an error ( Current Query )
I think it may be with the Specifiaction or something like that not sure yet