trpc-panel
trpc-panel copied to clipboard
Validation doesn't handle when emptying field
trafficstars
I have a query with optional start and end date fields. If I run the query without them, it works fine. If I add a date, it works fine. However, if I remove the date value, I get a validation error that the date is no longer properly formatted:
https://github.com/user-attachments/assets/8696edf3-248f-4d5f-8cc4-ec87dab37b00
Note that I don't even have to submit the query. Just by simply entering a date, then deleting it, this error will occur once I try to run it.