ampp
ampp11mo ago

Error: unique "match" on blank string ""

Just curious I was getting a error because another field had nothing in it "" and that was something i didn't think of. Does defaulting to null or v.optional get rid of the check? I'm using convex ents, but both docs don't seem to mention this being a condition.
1 Reply
erquhart
erquhart11mo ago
You'll want to make the field optional and remove the value when empty. You can clear the value for existing rows by setting it to undefined (there may be a different Ent specific way though, not sure)

Did you find this page helpful?