Closed torgesla closed 1 year ago
Yeah they should to default to undefined for sure - looking at the code they should be defaulting to undefined at the moment and I'm not able to reproduce (I'm seeing undefined when for optional text fields in both the form values and what gets passed to the query).
If you could send the schema you're using that leads to this behavior and also let me know where you're logging so I can investigate?
Going to close because of no activity / reproduction. Feel free to reopen with reproduction
As of version 1.2.3 of tRPC-panel, empty input fields default to null. Should these rather default to undefined to match with Zod's default value for optional parameters? When a request like this is executed:
the payload ends up like this:
instead of this: