Console Error for if component value is undefined

  • Goal:
    I am getting console error for the code
    image

Error:addTourServicesPaymentMethod is not defined.

I also set value to "not defined" for this component before. And im always getting the error. But it shouldn't be, becouse everything work properly. The error just happens becouse default value is "not defined".

I also tried this
image
but it doesnt work

Hi @tinedol99 Thanks for reaching out! When you say that everything is working properly, do you mean that you can successfully run this query when inputting 'not defined' as the payment_type?

What is the resource of the query? Can we see a screenshot of the error in the console?

yes, the problem is just console error.


image

Got it! Any chance you could share an app export for our team to further research?